PEP 208 - NewStyleNumber
Bernhard Herzog
bh at intevation.de
Fri Aug 30 09:47:13 EDT 2002
Joakim Hove <hove at phys.ntnu.no> writes:
> I am trying to implement an extension class which should support the
> PEP 208 notion of NEWSTYLENUMBER, i.e. a the fundamental arithmetic
> operations should accept different types without coercion.
[...]
>
> |cc-1020 cc: ERROR File = libETuple.c, Line = 200
> | The identifier "Py_TPFLAGS_NEWSTYLENUMBER" is undefined.
That flag is actually called Py_TPFLAGS_CHECKTYPES.
Looks like a bug in the PEP.
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/
More information about the Python-list
mailing list