Single underscore in interactive mode
Dave Angel
davea at davea.name
Wed Jun 25 17:56:03 EDT 2014
Terry Reedy <tjreedy at udel.edu> Wrote in message:
> On 6/25/2014 11:20 AM, candide wrote:
>> According to the official documentation (The Python Language Reference, Release 3.2):
>>
>>
>> -----------------------------------
>> The special identifier _ is used in the interactive interpreter to
>> store the result of the last evaluation;
>> -----------------------------------
>>
>>
>> This description is not very specific.
>
> Please say either in a tracker issue or here where you found this
> statement. I think 'evaluation' should be changed to 'non-None
> expression statement' and 'see sys.displayhook' added, linked to the
> entry in the sys doc.
>
>
https://pydocs2cn.readthedocs.org/en/latest/reference/lexical_anal
ysis.html
https://docs.python.org/2/reference/lexical_analysis.html
--
DaveA
More information about the Python-list
mailing list