GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — gh-142349: Move all lazy-imports-by-hand to use the new lazy keyword by pablogsal · Pull Request #144894 · python/cpython Conversation
|
|
Maybe worth noting that this would make |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Not fail to import, it will just be slower (if properly done). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
To be honest I am not super into this idea myself, but wanted to show how it looks for debate |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I picked |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.