[issue42011] Documentation for logging.Filter.filter reports the wrong return type
Vinay Sajip
report at bugs.python.org
Mon Oct 12 10:47:14 EDT 2020
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
I agree that the documentation now should use Booleans rather than ints for the return type. It's a hangover from the pre-bool days of Python 1.5.2 ...
> P.S. As a side note, the API for filter() is quite counter-intuitive
That depends on if you consider the "filter" operation as "filter in" or "filter out", but the documentation is clear on what needs to be returned for a particular outcome.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42011>
_______________________________________
More information about the Python-bugs-list
mailing list