howto run a function w/o text output?
Stargaming
stargaming at gmail.com
Fri Jun 22 13:14:24 EDT 2007
dmitrey schrieb:
> hi all,
> I have a
> y = some_func(args)
> statement, and the some_func() produces lots of text output. Can I
> somehow to suppress the one?
> Thx in advance, D.
>
Either rewrite it or pipe sys.stdout to some other file-like object but
your console while running it. The StringIO
(http://docs.python.org/lib/module-StringIO.html) module might help.
More information about the Python-list
mailing list