How do I access the last "un-caught" variable in the interpreter?

Dan Moskowitz danielm at cronus.res.cmu.edu
Tue Jun 19 23:12:16 EDT 2001


Pretty simple question:

>>> 2+2
4
>>> # can i access the 4 if i didn't catch it in a var?

Is there some variable for the last result returned from the
interpreter?  I thought that I used to know how to do it, but I've
forgotten.  Anyone know?

interpreter.last ?  

Thanks,
-dan



More information about the Python-list mailing list