Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
importinspectclassMyString(str):passdeff():a=1locals=inspect.currentframe().f_localsprint(MyString("a")inlocals)f()
In Python 3.12 and below this printsTrue. In Python 3.13 this printFalse. I think it comes down to the check for exact unicode:
Line 112 inf4ddaa3
| if (PyUnicode_CheckExact(key)) { |
The change in behaviour isn't a huge problem so if it's intended then I won't spend waste any time complaining about it, but I do think it's worth confirming that it is intended/desired.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Done