PEP 208 - NewStyleNumber

Bernhard Herzog bh at
Fri Aug 30 15:47:13 CEST 2002

Joakim Hove <hove at> 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.


Intevation GmbH                       

More information about the Python-list mailing list