print format

Alex cut_me_out at hotmail.com
Wed Jul 26 17:42:59 EDT 2000


> What is the difference between "print" and "sys.stdout.write"?

>>> import sys
>>> sys.stdout.write(1)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: read-only buffer, int
>>> print 1
1
>>> 

Alex.



More information about the Python-list mailing list