[Python-3000] Fwd: [Python-Dev] misbehaving __contains__

tomer filiba tomerfiliba at gmail.com
Tue Jan 22 21:55:14 CET 2008

On Jan 22, 2008 10:48 PM, Nicko van Someren <nicko at nicko.org> wrote:
> I don't know if your patch will be accepted but two salient questions
> you should address are:
>         a) Will the change break much existing code?
>         b) Will the change substantially impact performance?

well, i will take care of all the places in the core that define a
sq_contains method (not many), and i don't believe many extension
types implement it themselves, so the impact is expected to
be marginal.

as for the tweak in cmp_outcome, it's outside the eval-loop, so
there's no reason for a performance penalty.


More information about the Python-3000 mailing list