[docs] [issue37563] Documentation - default for StreamHandler

Jonathan report at bugs.python.org
Thu Jul 11 10:14:34 EDT 2019


New submission from Jonathan <bugreports at lightpear.com>:

https://docs.python.org/2/library/logging.handlers.html
https://docs.python.org/3/library/logging.handlers.html

Both say:

"""class logging.StreamHandler(stream=None)

Returns a new instance of the StreamHandler class. If stream is specified, the instance will use it for logging output; otherwise, sys.stderr will be used."""

Surely that means from an user perspective that the default is actually `sys.stderr`, not `None`?

----------
assignee: docs at python
components: Documentation
messages: 347677
nosy: docs at python, jonathan-lp
priority: normal
severity: normal
status: open
title: Documentation - default for StreamHandler
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37563>
_______________________________________


More information about the docs mailing list