Thinking about "print >>"

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Sep 5 12:05:27 EDT 2000


Roy Smith <roy at popmail.med.nyu.edu> writes:

> It seems to me that the thing to do would be to define a "print" method 
> for file objects, which is like write, but has all the pretty-print 
> functionality of the print statement.

Yet another proposal that doesn't work. print is a keyword, so you
can't use it as a method name.

Regards,
Martin




More information about the Python-list mailing list