[Python-3000] Print Statement => Function

Hasan Diwan hasan.diwan at gmail.com
Mon Feb 25 18:14:59 CET 2008


I attended Guido's talk in which he said that the print statement was
going to become a function, but gave no sense of direction. There is a
print-like statement in the file statement called "write". So, perhaps
print could be reworked as follows, for starters:

def print(self, fileobj, stringobj, *kwarg):
  fileobj.write(stringobj)

-- 
Cheers,
Hasan Diwan <hasan.diwan at gmail.com>


More information about the Python-3000 mailing list