Change in interactive interpreter?
gherron at islandtraining.com
Fri Jun 6 20:36:13 CEST 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?
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.
More information about the Python-list