gratuitous new features in 2.0

Rainer Deyke root at rainerdeyke.com
Fri Aug 25 12:18:29 EDT 2000


"Grant Edwards" <ge at nowhere.none> wrote in message
news:xmvp5.7634$6E.1862862 at ptah.visi.com...
> Personally, I don't understand why "print" exists at all.  You
> can accomplish the same thing with sys.stdout.write().  I think
> "print" does way to many automagical things behind the back of
> the programmer:
>
>  1) converts objects to strings
>
>  2) implicitly writes to a global object
>     (I've always been warned about such side-effects)
>
>  3) writes a newline
>
> But, I'm sure it's too late to get rid of the print statement.

I agree.  print should be deprecated, not extended.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list