Message344171
I've learned a lot about the performance trade-offs of generator expressions. The only way of shortening this code (readability is subjective) that I've found not to negatively impact performance is this:
def filter(self, record):
rv = True
for f in self.filters:
if not getattr(f, 'filter', f)(record):
rv = False
break
return rv |
|
Date |
User |
Action |
Args |
2019-06-01 13:08:52 | dwvisser | set | recipients:
+ dwvisser, vinay.sajip, zach.ware |
2019-06-01 13:08:51 | dwvisser | set | messageid: <1559394531.98.0.705741169972.issue37101@roundup.psfhosted.org> |
2019-06-01 13:08:51 | dwvisser | link | issue37101 messages |
2019-06-01 13:08:51 | dwvisser | create | |
|