bpo-37101: Improve readability of Filterer.filter(...) with builtins by dwvisser · Pull Request #13683 · python/cpython (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation16 Commits6 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

dwvisser

@dwvisser

@the-knights-who-say-ni

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Our records indicate we have not received your CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

If you have recently signed the CLA, please wait at least one business day
before our records are updated.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

@dwvisser

@dwvisser

asvetlov

zware

auvipy

@vsajip

Please see my comments on the issue.

@dwvisser

The performance impact of this change is measurably negative, therefore unacceptable. 😦

Here's the lesson I learned: generators are great for deferring computation, but they don't necessarily beat a focused loop with if- and break- statements in the right places. My code would be acceptable if the only criterion were functional and "tell me what you're doing, not how", but the logging package must also stay out of the way of real applications, performance-wise.