Message294820
Right now it is probably possible using something like:
handler.acquire()
try:
handler.flush()
handler.stream = new_stream
finally:
handler.release()
but it would be nice to have an officially-supported method to do that.
Context: if I reconfigure sys.stderr, I'd like to update all handlers that have a reference to the old sys.stderr. |
|
Date |
User |
Action |
Args |
2017-05-31 08:09:10 | pitrou | set | recipients:
+ pitrou, vinay.sajip |
2017-05-31 08:09:10 | pitrou | set | messageid: <1496218150.64.0.987173470763.issue30522@psf.upfronthosting.co.za> |
2017-05-31 08:09:10 | pitrou | link | issue30522 messages |
2017-05-31 08:09:10 | pitrou | create | |
|