Uh oh!
There was an error while loading. Please reload this page.
gh-142349: Move all lazy-imports-by-hand to use the new lazy keyword - #144894
gh-142349: Move all lazy-imports-by-hand to use the new lazy keyword#144894pablogsal wants to merge 1 commit into
Conversation
pablogsal
commented
Feb 16, 2026
DavidCEllis
commented
Feb 16, 2026
Maybe worth noting that this would make |
Not fail to import, it will just be slower (if properly done). |
pablogsal
commented
Feb 17, 2026
To be honest I am not super into this idea myself, but wanted to show how it looks for debate |
DavidCEllis
commented
Feb 17, 2026
You changed this to add (if properly done), but to be clear. A couple of examples with this PR: I do think in general the new lazy import form looks better, but it will need to be done with care (are there already tests to make sure the stdlib is still importable under |
Yeah :) What I wanted to say is that in theory just moving these imports to top level should not fail (as opposed to imports in with statements or try/excepts) if properly done
Thanks for the examples! Some extra passes need to be done if we want it because as it is test are failing anyway :(
Not (yet) since we haven't started to use the feature around. Thanks a lot for the point, this is indeed an important aspect that we must not overlook here or elsewhere! |
DavidCEllis
commented
Feb 17, 2026
I picked |
pablogsal
commented
Feb 17, 2026
Indeed :( I think I will close this. We need to approach this much slower and thinking how to check we don't fall into that. Thanks for the comments! |
Uh oh!
There was an error while loading. Please reload this page.