I'm working on a patch trying to (you know me!) silent GCC unused
warnings for special methods like __idiv__/__div__ that get generated
but not used under a Py 3 runtime... In the process, I would like to
make a little cleanup in TypeSlots.py... One of these cleanups, is
related to the 'flag' argument to SlotDescriptor.__init__() ..
Currently, it's only usage is to conditionally fill the nb_index slot.
In short, instead of defining the slot as:
MethodSlot(unaryfunc, "nb_index", "__index__", flag =
"Py_TPFLAGS_HAVE_INDEX")
I'll do it like this:
MethodSlot(unaryfunc, "nb_index", "__index__", ifdef =
""PY_VERSION_HEX >= 0x02050000"")
Comments ?
--
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev