[issue40194] Document special meanings of a single underscore

cripitone report at bugs.python.org
Sun Apr 5 08:47:13 EDT 2020


cripitone <cri at fsfe.org> added the comment:

> Various meanings are documented in appropriate sections

Uhm, you're right, though some of them are not that easy to find using the searchbar in the doc website, for example the meaning of "_" in https://docs.python.org/3.7/tutorial/introduction.html

Maybe it would help adding "(a single underscore)" at the end of the sentence "In interactive mode, the last printed expression is assigned to the variable _". This way one would get it by searching for "single underscore" or even "underscore".
(and maybe it could also be mentioned in https://docs.python.org/3.7/tutorial/interpreter.html and/or https://docs.python.org/3.7/tutorial/appendix.html which deal specifically with the interactive interpreter)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40194>
_______________________________________


More information about the Python-bugs-list mailing list