| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Only one small comment
Sorry, something went wrong.
| """) | ||
| assert_python_ok("-c", code) | ||
|
|
||
| def test_missing_attribute_raises_import_error(self): |
There was a problem hiding this comment.
Maybe I am misreading this but i think this covers a different path. lazy import math.pi as pi still resolves pi to the float instead of raising.
Sorry, something went wrong.
Sorry, something went wrong.
|
Thanks @DinoV for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
Sorry, something went wrong.
|
Sorry, @DinoV, I could not cleanly backport this to 3.15 due to a conflict. cherry_picker dffac6163e693cf80ed42cdc8e2cb5c0cb9577d7 3.15 |
Sorry, something went wrong.
|
GH-155983 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
As initially reported here: https://discuss.python.org/t/sys-lazy-modules-clarification/108385
lazy import math.pi has divergent behavior from import math.pi. Currently we allow this to work and just give you the math module. Instead we should raise ModuleNotFoundError because math.pi is not a module.