Re: Single underscore in interactive mode

2014-06-25 Thread Dave Angel
Terry Reedy 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

Re: Single underscore in interactive mode

2014-06-25 Thread candide
> > Please say either in a tracker issue or here where you found this > > statement. https://docs.python.org/3.4/reference/lexical_analysis.html#reserved-classes-of-identifiers -- https://mail.python.org/mailman/listinfo/python-list

Re: Single underscore in interactive mode

2014-06-25 Thread Lie Ryan
On 25/06/14 16:20, candide wrote: As explained by the docs, an assignment statement_evaluates_ the expression on the right hand side. So we can deduce that at the very beginning of the 2nd prompt, "the result of the last evaluation" is 43. Nevertheless, calling _ raises a NameError exception

Re: Single underscore in interactive mode

2014-06-25 Thread Terry Reedy
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; --

Re: Single underscore in interactive mode

2014-06-25 Thread Robert Kern
On 2014-06-25 16:20, 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;