Change in interactive interpreter?

Gary Herron gherron at islandtraining.com
Fri Jun 6 14:36:13 EDT 2008


The Pythonista wrote:
> I remember the interactive interpreter used to define the name _ to 
> return the value of the last expression that was evaluated.  However, I 
> tried it just today and got a NameError.  Is this a change in the 
> interpreter or is there a configuration option I need to set to enable it?
>
> Thanks!
>
>   

Try again.  I think you'll find it's still there -- although you have to 
execute a something that returns a value before it's set for the first time.

Gary Herron





More information about the Python-list mailing list