[Python-3000] Fwd: [Python-Dev] misbehaving __contains__
Christian Heimes
lists at cheimes.de
Wed Jan 23 14:29:47 CET 2008
Nicko van Someren 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?
>
> It seems to me that the answer should be 'no' to both questions, which
> is a good start!
I don't agree with you. I believe the answer to both questions is yes.
It will break every C code and it may slow down existing C code unless
you implement and optimize a fast path for Py_True and Py_False.
Christian
More information about the Python-3000
mailing list