[Python-3000] Print Statement => Function

Guido van Rossum guido at python.org
Mon Feb 25 18:32:36 CET 2008


PEP 3105

On Mon, Feb 25, 2008 at 9:14 AM, Hasan Diwan <hasan.diwan at gmail.com> wrote:
> 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)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list