[Python-Dev] Slot for __trunc__

Raymond Hettinger python at rcn.com
Tue Jan 29 20:04:50 CET 2008


Should the implementation of __trunc__ have its own slot like we have for nb_index?

Raymond


-------------------------------------------------------
rhettinger at localhost ~/py26/Objects $ grep "__trunc__" *.c
floatobject.c:  {"__trunc__",   (PyCFunction)float_trunc, METH_NOARGS,
intobject.c:    {"__trunc__",   (PyCFunction)int_int,   METH_NOARGS,
longobject.c:   {"__trunc__",   (PyCFunction)long_long, METH_NOARGS,


More information about the Python-Dev mailing list