PEP 690: Lazy Imports

I like the idea but I am +0 until I see the implementation.
I am worrying about how much it makes dict complicated.

It would be better to have an API to enable transparent lazy import from script.
Imagine that command line tool like hg (Mercurial).

  • Setting PYTHONLAZYIMPORT only for hg doesn’t make sense.
  • It is difficult to use -L in shebang.
1 Like