[IPython-user] [beginner] problem with _

David ldl08@gmx....
Sat Nov 22 10:02:31 CST 2008


Hello list,

I am just beginning teaching myself IPython, and I am stumbling.
Following the steps in a book on Computer Programming (Langtangen), the 
author gives the following example:

In [1]: run ball_variables.py
1.2342

In [2]: _*10
Out[2]: 12.341999999999999


That is, he argues that with an underscore "_" the last result can be 
accessed.
However, I cannot reproduce this behaviour. I am running
Python 2.5.2 (r252:60911) with IPython 0.8.1.

Could someone please be so kind and let me know what the mistake is?

Cheers,

David


More information about the IPython-user mailing list