3 ms·
Why would there exist a way in Python to conditionally import types, for the purpose of preventing cyclic imports, if cyclic imports weren't a problem? Your co
by welder 4y ago
Why would there exist a way in Python to conditionally import types, for the purpose of preventing cyclic imports, if cyclic imports weren't a problem?
Your comment makes it seem like you haven't experienced Python types enough, or you wouldn't think it was so easy.
- heavenlyblue 4y ago> Your comment makes it seem like you haven't experienced Python types enough, or you wouldn't think it was so easy. Oh trust me I did and I constantly slap on the wrists juniors who over-complicate their solutions to the problem :) > Why would there exist a way in Python to conditionally import types, for the purpose of preventing cyclic imports, if cyclic imports weren't a problem? Because it's easier to understand than the solution to cyclic imports without conditional imports.