Content-Length: 295456 | pFad | https://github.com/python/cpython/issues/112343

ad pdb unintentionally interpolates strings with convenience variables · Issue #112343 · python/cpython · GitHub
Skip to content

pdb unintentionally interpolates strings with convenience variables #112343

Description

@salty-horse

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

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/issues/112343

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy