[Python-Dev] extended print statement, uPre-PEP
Sun, 23 Jul 2000 11:00:18 +0200
On Sun, Jul 23, 2000 at 03:07:18AM -0400, Barry A. Warsaw wrote:
> Forget about @, let's use >> instead. What I mean by "red herring" is
> that it doesn't much matter what the token after print is -- we can
> argue about that all we want later. As long as the token can't appear
> in that position with any other meaningful semantics, you're fine.
> print >> sys.stdout, 'post to', listname, 'from', sender, 'size=', len(msg)
Eventhough I said I'd prefer deprecating 'print' over doing something like
this, I can actually see this work. '>>' on files has two meanings: the C++
one, and the UNIX one. I'm still not sure if it's a good idea, but given
this example and the arguments for it, I'm not violently opposed anymore.
Thomas Wouters <firstname.lastname@example.org>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!