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 serhiy.storchaka
Recipients christian.heimes, collinwinter, diekhans, georg.brandl, pitrou, serhiy.storchaka
Date 2015-02-10.11:58:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1423569483.99.0.940662052921.issue1625576@psf.upfronthosting.co.za>
In-reply-to
Content
And the name attribute of FileIO object is writable. So you can change it after calling fdopen.

>>> import os
>>> f = os.fdopen(2, "w")
>>> f
<_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>
>>> f.buffer.raw.name = 'useful name'
>>> f
<_io.TextIOWrapper name='useful name' mode='w' encoding='UTF-8'>
History
Date User Action Args
2015-02-10 11:58:04serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, collinwinter, pitrou, diekhans, christian.heimes
2015-02-10 11:58:03serhiy.storchakasetmessageid: <1423569483.99.0.940662052921.issue1625576@psf.upfronthosting.co.za>
2015-02-10 11:58:03serhiy.storchakalinkissue1625576 messages
2015-02-10 11:58:03serhiy.storchakacreate