Re: what is the 256 on my screen ?

Guido van Rossum (Guido.van.Rossum@cwi.nl)
Thu, 02 Jul 1992 22:48:56 +0200

brannon@jove.cs.caltech.edu (Terrence M. Brannon):
>i did an os.system() call and I keep getting thsse 256 or 0 on my
>screen after the call . Is there anyway to nullify this output ?

Yes. This is the exit status of the command (really the return value
of system(3)). The Python interpreter prints the value of an
expression statement unless it is None -- this is done so you can use
the interpreter as an interactive calculator. The simplest way of
avoiding the printing of the value is to assign it to a dummy value.

>i am starting up a faq for python by the way

That's great. Will it be ftp'able? I might point new readers of the
list to it, to get them up at full speed quickly...

--Guido van Rossum, CWI, Amsterdam <guido@cwi.nl>
"Repo Man's got all night, *every* night"