-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
New REPL exits when there are non-string candidates for suggestions #130999
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
Comments
Ok, I'll say it's a bug for 3.13/3.14 and a crash for 3.12 but the crash issue is tracked elsewhere |
In dup #133748, the code was On the other issue, @StanFromIreland proposed, as I understand it, that globals be made a string-only dict. Since, AFAIK, it is not documented as such, I suspect that this would break something. As I remember, @gvanrossum once rejected the idea of making class With a non-string in globals, |
Does it exit after this PR #131910 was merged? |
It still does. A reproducer was linked in the issue. |
The fix is very simple, but I'd like some feedback on the best way to do it: #131001 (comment). |
… candidates for suggestions (pythongh-131001) (cherry picked from commit baccfdb) Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
… candidates for suggestions (pythongh-131001) (cherry picked from commit baccfdb) Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
I think the fix here is what's causing the buildbot failure seen at: https://buildbot.python.org/#/builders/1368/builds/3297:
|
I'm on it. |
Uh oh!
There was an error while loading. Please reload this page.
Crash report
What happened?
The new REPL in main will exit if a suggestion would be offered, but there are non-string candidates like below:
This is an offshoot of #129573, where code like above would abort in 3.12.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a5+ (heads/main:a3990df6121, Mar 9 2025, 00:02:58) [GCC 13.3.0]
Linked PRs
The text was updated successfully, but these errors were encountered: