1,686 karma · joined January 4, 2021
If you come across a post or an example that shows those differences, I would be very interested!
I'm curious if you have any example of this? Even if it's an hyperbole, I don't really see how.
They spend a lot of time on improving Python itself and then you have pip which is a way to install packages and that's it; it's not a package manager nor a python version manager.
By rule, you should never meddle with the globally installed python because so many packages will try to look for the system installed Python and use it, better let your package manager handle it.
I'm not very fond of mypy as it struggles even with simple typing at times.
If your work is deeply exploratory and you don't even know what the final interface/API will look like, you shouldn't start with TDD. You should probably test as you go though, once you find some behavior you'd like to keep and pin down variations and edge cases you met during dev.
If/Once you know what the expected behavior is, you can encapsulate that knowledge in tests, that's TDD to me. Then, I can write more code that meets the need of the expected API.
if bar.get("baz", {}).get("qux") is not None:
...