Message235683
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'> |
|
Date |
User |
Action |
Args |
2015-02-10 11:58:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, collinwinter, pitrou, diekhans, christian.heimes |
2015-02-10 11:58:03 | serhiy.storchaka | set | messageid: <1423569483.99.0.940662052921.issue1625576@psf.upfronthosting.co.za> |
2015-02-10 11:58:03 | serhiy.storchaka | link | issue1625576 messages |
2015-02-10 11:58:03 | serhiy.storchaka | create | |
|