-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-87115: Set __main__.__spec__
to None
in pdb
#116141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey @iritkatriel could you take a quick look at this? This is a trivial fix - just to set |
Thanks @gaogaotiantian for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @gaogaotiantian and @iritkatriel, I could not cleanly backport this to
|
Sorry, @gaogaotiantian and @iritkatriel, I could not cleanly backport this to
|
I'll work on the cp. I thought the fix is trivial enough so there should not be any conflicts. |
(cherry picked from commit ccfc042)
…onGH-116141) (cherry picked from commit ccfc042) Co-authored-by: Tian Gao <[email protected]>
GH-116154 is a backport of this pull request to the 3.12 branch. |
GH-116155 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit ccfc042)
…onGH-116141) (cherry picked from commit ccfc042) Co-authored-by: Tian Gao <[email protected]>
__main__.__spec__
should beNone
when running a script, butpdb
does not set it in the namespace. This breaks some code that relies on it (that__spec__
exists in__main__
).