-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
Python 3.12 introduced $-prefixed convenience variables to pdb (#103693).
It automatically replaces $-words in strings, which is undocumented. @nedbat suggests this is unintended behavior.
(Pdb) p '$in'
'__pdb_convenience_variables["in"]'
This totally breaks MongoDB queries inside pdb, as it makes frequent use of such strings.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error