Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
REF: use _constructor and ABCFoo to avoid runtime imports #25272
Feb 11, 2019
11 checks passed
A question in general: why do we find run-time imports (within function imports) problematic?
Further concrete note: using
A pattern I re-discovered when making a PR to cython a couple weeks ago: runtime imports mean circular dependencies, which make the codebase much harder for newcomers to understand.
I would argue for the opposite .. :) Runtime import (eg the Series import in
OK, that might certainly something to take care of, but here we are speaking about pure python submodules?
In any case, I think