[Python-Dev] PEP 335 officially rejected
Guido van Rossum
guido at python.org
Tue Mar 13 00:37:57 CET 2012
We've had many discussions in the past about PEP 335 and they always
ended in non-action. I'm cutting any future discussions short and
officially rejecting the PEP. Amongst other reasons, I really dislike
that the PEP adds to the bytecode for all uses of these operators even
though almost no call sites will ever need the feature.
PS. The NumPy folks brought up a somewhat separate issue: for them,
the most common use case is chained comparisons (e.g. A < B < C). If
someone wants to propose a PEP that makes this case overloadable I
might be amenable to accepting it, since chained comparisons are used
much less frequently than the and/or operators.
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev