[Python-checkins] r63765 - python/branches/okkoto-sizeof/Objects/typeobject.c
robert.schuppenies
python-checkins at python.org
Wed May 28 18:44:10 CEST 2008
Author: robert.schuppenies
Date: Wed May 28 18:44:00 2008
New Revision: 63765
Log:
cleanup
Modified:
python/branches/okkoto-sizeof/Objects/typeobject.c
Modified: python/branches/okkoto-sizeof/Objects/typeobject.c
==============================================================================
--- python/branches/okkoto-sizeof/Objects/typeobject.c (original)
+++ python/branches/okkoto-sizeof/Objects/typeobject.c Wed May 28 18:44:00 2008
@@ -2611,7 +2611,6 @@
static PyObject *
type_sizeof(PyObject *self, PyObject *args)
{
- printf("type_sizeof\n");
return PyInt_FromSsize_t(self->ob_type->tp_basicsize);
}
@@ -2621,7 +2620,7 @@
{"__subclasses__", (PyCFunction)type_subclasses, METH_NOARGS,
PyDoc_STR("__subclasses__() -> list of immediate subclasses")},
{"__sizeof__", type_sizeof, METH_NOARGS | METH_CLASS,
- PyDoc_STR("default sizeof implementation for type")},
+ PyDoc_STR("__sizeof__() -> size of type in bytes")},
{0}
};
@@ -3431,7 +3430,7 @@
{"__format__", object_format, METH_VARARGS,
PyDoc_STR("default object formatter")},
{"__sizeof__", object_sizeof, METH_NOARGS,
- PyDoc_STR("default sizeof implementation")},
+ PyDoc_STR("__sizeof__() -> size of object in bytes")},
{0}
};
More information about the Python-checkins
mailing list