[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable
Zachary Ware
report at bugs.python.org
Thu May 30 12:01:21 EDT 2019
Zachary Ware <zachary.ware at gmail.com> added the comment:
This could simplify even further with the following:
def filter(self, record):
return all(getattr(f, 'filter', f)(record) for f in self.filters)
----------
nosy: +zach.ware
versions: +Python 3.8 -Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37101>
_______________________________________
More information about the Python-bugs-list
mailing list