S SearchRSS
< BackHome
Newest questions tagged python - Stack Overflow

Is there a way to use lazy imports in backwards-compatible code?

I'm writing some code that I want to make use of lazy imports, which were introduced in Python 3.15. However, I want the code to run fine on Python < 3.15 too, albeit without lazy imports. Just running the following code

View original source