I’m unfamiliar with the PEP process. How long until this makes it into a Python version?
Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
11–20 of 64 posts
Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#12Earlier quoted context omitted.
> I suspect this change in Python will dramatically improve the performance of such large programs as well. Makes packaging super fun too, where you need to hit every possible path so you don't miss anything imported in 1% of the execution paths :)
Can't you do some kind of static analysis instead?
Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#13Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#14Does it conform Occam's razor rule to have something that can be easily done very similar way without changing language?
Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#15I've noticed that instead of defining requires at the top of Lua files, if you can know your own program well enough, defining them right before the dependency is actually used makes large Lua programs much, much quicker. Generally speaking, startup times can be a sped up by a meaningful factor. I suspect this change in Python will dramatically improve the performance of such large programs as well.
> I suspect this change in Python will dramatically improve the performance of such large programs as well. Makes packaging super fun too, where you need to hit every possible path so you don't miss anything imported in 1% of the execution paths :)
Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#16I've noticed that instead of defining requires at the top of Lua files, if you can know your own program well enough, defining them right before the dependency is actually used makes large Lua programs much, much quicker. Generally speaking, startup times can be a sped up by a meaningful factor. I suspect this change in Python will dramatically improve the performance of such large programs as well.
You have always been able to do the same thing in Python. This PEP isn't needed for that functionality.
Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#170.https://www.hudsonrivertrading.com/hrtbeat/inside-hrts-pytho...
Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#18Does it conform Occam's razor rule to have something that can be easily done very similar way without changing language?
Regardless lazy loading needs widespread use to be most effective so having a unified syntax and no extra dependencies makes a lot of sense.
Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#19Some folks at HRT[0] will probably be unhappy about that lol 0. https://www.hudsonrivertrading.com/hrtbeat/inside-hrts-pytho...
Re: Python Steering Council unanimously accepts "PEP 810, Explicit lazy imports"
#20Some folks at HRT[0] will probably be unhappy about that lol 0. https://www.hudsonrivertrading.com/hrtbeat/inside-hrts-pytho...
Is that not exactly what PEP 810 proposes?