[New-bugs-announce] [issue30522] Allow replacing a StreamHandler's stream

Antoine Pitrou report at bugs.python.org
Wed May 31 04:09:10 EDT 2017

New submission from Antoine Pitrou:

Right now it is probably possible using something like:

        handler.stream = new_stream

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.

messages: 294820
nosy: pitrou, vinay.sajip
priority: normal
severity: normal
status: open
title: Allow replacing a StreamHandler's stream
type: enhancement
versions: Python 3.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list