PEP 0214 - extended print statement

Chris Ryland cpr at emsoftware.com
Tue Aug 22 17:11:41 EDT 2000


I see from Python-Dev that the BDFL has already spoken, so print >>outfile,
... is now a given. Sigh. I suppose we're fairly safe in trusting his taste.
;-)

--
Cheers!
/ Chris Ryland, President / Em Software, Inc. / www.emsoftware.com
"Chris Ryland" <cpr at emsoftware.com> wrote in message
news:W_in5.364$Y2.3247 at news...
> Please forgive a relative Python newbie's whining (and forgive me if this
> has already been discussed in public), but I think the proposed extended
> print syntax is TERRIBLE.
>
> (Viz., simplifying, print >> outfile, something .)
>
> This seems very un-Pythonic in that it's overloading the >> operator and
> giving it a completely unrelated meaning in this one, lonely context.
>
> Since the print statement is already quite special, why overload an
existing
> valid operator? Just add another (non-reserved, perhaps) keyword, along
the
> lines of
>
> print something to outfile






More information about the Python-list mailing list