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 christian.heimes, collinwinter, diekhans, georg.brandl, pitrou
Date 2010-11-12.17:10:38
SpamBayes Score 8.4752064e-05
Marked as misclassified No
Message-id <1289581839.66.0.278179718811.issue1625576@psf.upfronthosting.co.za>
In-reply-to
Content
The requested feature would require an additional argument to fdopen() and open(), which already have many args. It would be better IMO to make the `name` attribute on file objects writeable.

By the way, right now (in 3.x) fdopen() gives you the file descriptor number, which is better than nothing:

>>> import os
>>> f = os.fdopen(2, "w")
>>> f
<_io.TextIOWrapper name=2 encoding='UTF-8'>
History
Date User Action Args
2010-11-12 17:10:39pitrousetrecipients: + pitrou, georg.brandl, collinwinter, diekhans, christian.heimes
2010-11-12 17:10:39pitrousetmessageid: <1289581839.66.0.278179718811.issue1625576@psf.upfronthosting.co.za>
2010-11-12 17:10:38pitroulinkissue1625576 messages
2010-11-12 17:10:38pitroucreate