[issue32212] few discrepancy between source and docs in logging

2017-12-04 Thread Michal Plichta
Michal Plichta <mplic...@gmail.com> added the comment: Nice, btw maybe other parameters in logging's docs needs to be corrected. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32212] few discrepancy between source and docs in logging

2017-12-04 Thread Michal Plichta
Michal Plichta <mplic...@gmail.com> added the comment: see at typeshed: https://github.com/python/typeshed/blob/master/stdlib/2and3/logging/__init__.pyi#L147 def setLevel(self, lvl: Union[int, str]) -> None: ... def setFormatter(self, form: 'Formatter') -> None: ... this

[issue32212] few discrepancy between source and docs in logging

2017-12-04 Thread Michal Plichta
New submission from Michal Plichta <mplic...@gmail.com>: my code: logger = logging.getLogger(name) logger.setLevel(level=logging.DEBUG) ... stream_handler = logging.StreamHandler(stream=stdout) stream_handler.setLevel(logging_level) stream_handler.setFormatter(fmt=formatter) and mypy