This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Arfrever, amaury.forgeotdarc, eric.araujo, ezio.melotti, pitrou, vstinner
Date 2010-08-11.10:10:05
SpamBayes Score 8.0164483e-07
Marked as misclassified No
Message-id <1281521408.16.0.423784845908.issue9425@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, I'm not sure there's much point since the "name" attribute is currently read-only:

>>> f = open(1, "wb")
>>> f.name = "foo"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: attribute 'name' of '_io.BufferedWriter' objects is not writable
>>> 
>>> g = open(1, "w")
>>> g.name = "bar"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: attribute 'name' of '_io.TextIOWrapper' objects is not writable
History
Date User Action Args
2010-08-11 10:10:08pitrousetrecipients: + pitrou, amaury.forgeotdarc, vstinner, ezio.melotti, eric.araujo, Arfrever
2010-08-11 10:10:08pitrousetmessageid: <1281521408.16.0.423784845908.issue9425@psf.upfronthosting.co.za>
2010-08-11 10:10:06pitroulinkissue9425 messages
2010-08-11 10:10:05pitroucreate