Re:How we rolled out one of the largest Python 3 migrations
by weberc2 on Thursday September 27, 2018 @11:17AM
(#18085307)
I’m almost certain that only applies to individual compilation units and not the whole AST. In other words, if I use reflection in my main package, code pruning still works on dependencies, which is quite a lot better than the Python situation.
A simpler alternative would be for Numpy and Pandas to provide its features as subpackages, like Airflow does: https://airflow.readthedocs.io/en/latest/installation.html