[New-bugs-announce] [issue45604] multiprocessing.log_to_stderr missing documentation for parameter

Alex Wells report at bugs.python.org
Mon Oct 25 10:34:49 EDT 2021


New submission from Alex Wells <alex.wells at diamond.ac.uk>:

The documentation for multiprocessing.log_to_stderr() specifies that the method takes no parameters. However, intellisense in VSCode and debugging the method both show that there is a single parameter, "level", whose default value is None. 
Documentation here:
https://docs.python.org/3.7/library/multiprocessing.html#multiprocessing.log_to_stderr

The parameter appears to be a shorthand to allow you to both get the logger and specify the required log level in one step, rather than two. The code that handles the "level" parameter appears to do what I'd expect it to do.

I think the documentation simply needs a few words written about the parameter.

Thanks.

----------
assignee: docs at python
components: Documentation
messages: 404965
nosy: AlexWells, docs at python
priority: normal
severity: normal
status: open
title: multiprocessing.log_to_stderr missing documentation for parameter
type: enhancement
versions: Python 3.7

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


More information about the New-bugs-announce mailing list