diff --git a/Include/objimpl.h b/Include/objimpl.h index 0fd813df3ef..f44963c7b33 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -166,7 +166,7 @@ extern DL_IMPORT(void) _PyObject_Del(PyObject *); ( (type *) _PyObject_NewVar((typeobj), (n)) ) #define PyObject_Del(op) _PyObject_Del((PyObject *)(op)) -/* Macros trading binary compatibility for speed. See also mymalloc.h. +/* Macros trading binary compatibility for speed. See also pymem.h. Note that these macros expect non-NULL object pointers.*/ #define PyObject_INIT(op, typeobj) \ ( (op)->ob_type = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) diff --git a/Objects/object.c b/Objects/object.c index d6b7607dd88..99fea99bc63 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1004,7 +1004,7 @@ PyTypeObject *_Py_cobject_hack = &PyCObject_Type; int (*_Py_abstract_hack)(PyObject *) = &PyObject_Size; -/* Python's malloc wrappers (see mymalloc.h) */ +/* Python's malloc wrappers (see pymem.h) */ void * PyMem_Malloc(size_t nbytes)