Recall last result

Littlejohn septante cinq fp2 at AUTO
Mon Jun 9 12:38:37 CEST 2003


Erich Neuwirth <erich.neuwirth at aon.at> writes:

>Is there a standard way of recalling the last result?
>Following situation:
>I call a function producing a large solution
>for a combinatorial problem. The computation takes quite some time.
>I forgot to assign the result to a variable.
>The list is displayed on screen?
>Can i access the result of the last computation in a goboal vaiable?

Try: result = _

The interactive interpreter stores the last result in _ (it is like $_ in perl but without the noisy $)

>I tried to find the answer in the docs, but could not find it.
>Is there a FAQ dealing with questions like this one?





More information about the Python-list mailing list