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 intopython:mainfrom
Conversation
|
Maybe worth noting that this would make |
Not fail to import, it will just be slower (if properly done). |
|
To be honest I am not super into this idea myself, but wanted to show how it looks for debate |
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! |
|
I picked |
Uh oh!
There was an error while loading. Please reload this page.