4 ms·
I think I have about 95% of Python in my head. I occasionally see a new edge case I hadn’t considered, but it’s been a while. The language itself is rather comp
by kstrauser 3y ago
I think I have about 95% of Python in my head. I occasionally see a new edge case I hadn’t considered, but it’s been a while. The language itself is rather compact. There aren’t so very many keywords or builtin functions. Even the stdlib is manageable, although I'm always pleasantly surprised when a module has added some new functionality or convenience that will save me time. It’s knowable.
- hota_mazi 3y agoThe problem with Python (and dynamically typed languages in general) is not so much knowing the language, but understanding the code that people write with it. Since there are no type annotations to help your understanding of the code, you need to keep a lot in your head, as opposed to statically typed languages.
- kstrauser 3y agoThat’s not been my experience at all, but I could see it being confusing at first. Also, we do have type annotations now. They’re not universally used, and definitely not required, but mypy and friends can go a long way toward finding type issues even without them.
- pjmlp 3y agoThe almost 3000 pages of language reference, standard library and C extension API, and changes across language versions?
- kstrauser 3y agoYeah, because there's a whole lot of redundancy. If you "know" 3.11, and upgrade to 3.12, there are only going to be a few changelog items you'll actually care about. The rest are generally internal implementation changes that don't affect how you use the language. OK, so I don't have every corner of the stdlib memorized, especially the odd deprecated batteries-included stuff like playing sounds on a Sun workstation. Nor do I have the extension API docs committed to memory, as you can use the language a lot without having to write those things yourself. But the core of Python, like the language itself and the most common parts of the stdlib that are actually used in 95% of Python code, I have a strong grip on. In particular, the actual language is pretty simple.