[Python-Dev] Slot for trunc (original) (raw)

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