I would gladly take a command line flag that I can pass to python that makes all module loading lazy.
Unless you are writing scripts or very simple stuff running side effects when modules are loaded should be avoided at all cost anyway.
Unless you are writing scripts or very simple stuff running side effects when modules are loaded should be avoided at all cost anyway.
oh, you want a "break my libraries" flag? :D
seriously, in theory lazy imports may be "transparent" for common use cases, but I've saw too many modules rely on the side effects of the importing, that I understand why they needed to make this a "double opt in" feature