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 pitrou, vinay.sajip
Date 2017-05-31.08:09:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496218150.64.0.987173470763.issue30522@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-05-31 08:09:10pitrousetrecipients: + pitrou, vinay.sajip
2017-05-31 08:09:10pitrousetmessageid: <1496218150.64.0.987173470763.issue30522@psf.upfronthosting.co.za>
2017-05-31 08:09:10pitroulinkissue30522 messages
2017-05-31 08:09:10pitroucreate