[issue40194] Document special meanings of a single underscore

2020-04-05 Thread cripitone


cripitone  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40194] Document special meanings of a single underscore

2020-04-05 Thread SilentGhost


SilentGhost  added the comment:

Various meanings are documented in appropriate sections, ignoring and use in 
loops is a misunderstanding on part of the author - using underscore there is 
convention and doesn't have special meaning on the language level.

--
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40194] Document special meanings of a single underscore

2020-04-05 Thread cripitone


New submission from cripitone :

The official documentation doesn't seem to cover the various meanings/uses of 
the single underscore "_", in different contexts (not just the interactive 
interpreter).

See for example:

https://www.datacamp.com/community/tutorials/role-underscore-python

--
assignee: docs@python
components: Documentation
messages: 365814
nosy: cripitone, docs@python
priority: normal
severity: normal
status: open
title: Document special meanings of a single underscore
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com