Re: python strings ( function func_doc strings )
Tue, 26 Apr 1994 19:56:57 +0200

> Oops! Did I miss something? Are you planning to get rid of printing
> of (unassigned) expressions TOTALLY ? - I thought it was going to be
> a command line option. ( Or am I misunderstanding you? )

Hmm, the consensus was (I think) not to have a command line option.
The reason being that (permanently) having two versions of the
language distinguished by a global switch would be a bad idea -- what
if my module requires the switch to be off while your code requires it
to be on, and then somebody else wants to use my code and yours in one
program... (*)

Instead, expressions entered at the interactive toplevel will be
printed and all others won't. (I still haven't figured out how to
implement this, but a few ideas seem workable. The best idea would be
to also introduce a magic global variable that receives the result of
the last expression printed this way -- useful for a desk calculator-
like use of interactive Python.)

(*) A switch for backward compatibility might be supported for a

--Guido van Rossum, CWI, Amsterdam <>
URL: <>