3 ms·
> Whenever I think about it I can't quite put my finger on exactly what Python would need to make it the same. It's something to do with the way imports and nam
by sedachv 6y ago
> Whenever I think about it I can't quite put my finger on exactly what Python would need to make it the same. It's something to do with the way imports and namespaces work, though.
Python has a fundamentally broken module system, and Python 3 did nothing to fix it:
https://nedbatchelder.com/blog/201908/why_your_mock_doesnt_work.html https://nedbatchelder.com/blog/201908/why_your_mock_doesnt_w...
https://docs.python.org/dev/library/importlib.html#importlib.reload https://docs.python.org/dev/library/importlib.html#importlib...
- globular-toast 6y agoRight. That's it. Thanks for the links!