4 ms·
>While Python doesn't allow circular dependencies between modules, it won't stop you from introducing circular dependencies between packages. Just to nitpick,
by falcor84 4y ago
>While Python doesn't allow circular dependencies between modules, it won't stop you from introducing circular dependencies between packages.
Just to nitpick, while it is a very potent foot-gun, Python absolutely does allow circular dependencies between regular modules; here's a good write-up about this:
https://stackabuse.com/python-circular-imports/ https://stackabuse.com/python-circular-imports/