Last expression vrbl (was: python strings ( function func_doc strings ))

Tim Peters (tim@ksr.com)
Tue, 26 Apr 94 18:29:12 -0400

> [guido]
> ... The best idea would be to also introduce a magic global variable
> that receives the result of the last expression printed this way [as a
> top-level interactive expression] -- useful for a desk calculator-like
> use of interactive Python.

Ya! Go for it. I suggest "z" as the magic global variable: if it ain't
short to type, it ain't helpful; believe "z" is rarely used interactively
(whereas a, b, c, i, j, k, n, x, y are); and "last letter of the alphabet"
is so very suggestive of "last expression" <snort>.

casting-the-second-vote-for-"last"-ly y'rs - tim

Tim Peters tim@ksr.com
not speaking for Kendall Square Research Corp