PEP 690: Lazy Imports Again

Off the top of my head implementation things that came up were…

  • Needing to change the core PyDict implementation itself solely for a module namespace purpose. The dk_lazy_imports flag and related new PyDict_NextWithError et. al. C APIs. Quite creative, but it felt like a potentially short term hack rather than something we’d be proud of in 5-10 years.
  • The Python APIs being in importlib instead of sys came up as feeling unusual. (probably more of a bikeshed)

I’ll let others fill in more on their own if that doesn’t capture it.

1 Like