[Python-Dev] Challenge about print >> None

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Tue, 12 Sep 2000 16:48:11 +0200

> > Sigh.  You code doesn't work.  Quoting the PEP, from the section
> > that discusses why passing None is the same thing as passing no
> > file at all:
> > 
> >     "Note: defaulting the file argument to sys.stdout at compile time
> >     is wrong, because it doesn't work right when the caller assigns to
> >     sys.stdout and then uses tables() without specifying the file."
> Of course that it doesn't work if you assign to sys.stdout. But hey,
> if you assign to sys.stdout, you know what 'sys' is, what 'sys.stdout' is,
> and you know basically everything about std files and output. Don't you?

no.  and since you're so much smarter than everyone else,
you should be able to figure out why.

followups to /dev/null, please.