Mercurial > cpython-lru_cache-weakref
diff Modules/_testcapimodule.c @ 47925:fd054e73e2f2 legacy-trunk
Added garbage collector overhead and optional default return value to
sys.getsizeof.
| author | Robert Schuppenies <okkotonushi@googlemail.com> |
|---|---|
| date | Thu, 10 Jul 2008 17:13:55 +0000 |
| parents | 52294af4b663 |
| children | 76e71cecc4d3 |
line wrap: on
line diff
--- a/Modules/_testcapimodule.c Thu Jul 10 16:06:41 2008 +0000 +++ b/Modules/_testcapimodule.c Thu Jul 10 17:13:55 2008 +0000 @@ -967,6 +967,7 @@ PyModule_AddObject(m, "ULLONG_MAX", PyLong_FromUnsignedLongLong(PY_ULLONG_MAX)); PyModule_AddObject(m, "PY_SSIZE_T_MAX", PyInt_FromSsize_t(PY_SSIZE_T_MAX)); PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyInt_FromSsize_t(PY_SSIZE_T_MIN)); + PyModule_AddObject(m, "SIZEOF_PYGC_HEAD", PyInt_FromSsize_t(sizeof(PyGC_Head))); TestError = PyErr_NewException("_testcapi.error", NULL, NULL); Py_INCREF(TestError);
