-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed as not planned
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement
Description
Bug report
Bug description:
This is a snippet from the python REPL.
>>> "abc"
'abc'
>>> _
'abc'
>>> _ = "bcf"
>>> _
'bcf'
>>> "abc"
'abc'
>>> _
'bcf'
>>> ››
Python allows overriding _
as a variable. If this is overridden, there seems to be no way to return to the previous default behaviour. If there is, please correct and suggest.
CPython versions tested on:
3.12
Operating systems tested on:
macOS
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement