This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dwvisser
Recipients dwvisser, vinay.sajip, zach.ware
Date 2019-06-01.13:08:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559394531.98.0.705741169972.issue37101@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-06-01 13:08:52dwvissersetrecipients: + dwvisser, vinay.sajip, zach.ware
2019-06-01 13:08:51dwvissersetmessageid: <1559394531.98.0.705741169972.issue37101@roundup.psfhosted.org>
2019-06-01 13:08:51dwvisserlinkissue37101 messages
2019-06-01 13:08:51dwvissercreate