[Tutor] Suppressing output in interactive mode

Olivier Lefevre lefevrol at yahoo.com
Fri Jan 11 12:26:29 CET 2008


This is stupid but my python is rusty I can neither
remember nor find out anew how to enter an expression
that returns a value w/o being seeing the result printed.
I would have expected something
    expr;
as opposed to
    exp
to do the trick but no dice and I haven't had any luck
with Google or the docs. Can it be done? Note that I
don't necessarily want to suppress all output, just
just for certain expressions (e.g., within a loop,
so as not to get flooded).

Thx much,

-- O.L.



More information about the Tutor mailing list