Just <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, > Simo Melenius <[EMAIL PROTECTED]> wrote: > > ... sys.stdout = sys.__stdout__ > Aargh, I can't believe how widespread this idiom is :-(. See my other > reply in this thread: DON'T use sys.__stdout__. Ever.
It probably does the right thing, if someone is copypasting code off the Usenet and tries it out at the Python prompt (and possibly gets stuck in getting nothing printed on his tty). If we're talking about real code it might be advisable to start by first introducing the import statements omitted from the above snippet, then worry about someone copypasting code into a serious program instead of copythinkpasting it. :) br, S -- http://mail.python.org/mailman/listinfo/python-list