why can't do foo = print ?
romany at actimize.com
Thu Aug 1 06:09:20 EDT 2002
From: Shagshag13 [mailto:shagshag13 at yahoo.fr]
Sent: Thursday, August 01, 2002 10:56 AM
To: python-list at python.org
Subject: why can't do foo = print ?
i would like to have something like :
fh = file(filename, 'w')
write = fh.write
write = print
for i in something
how could i do that ? is this possible ? (i can't do "write = print" and don't understant why)
thanks in advance,
More information about the Python-list