diff -r a9f73b44ea0e Doc/c-api/memory.rst --- a/Doc/c-api/memory.rst Tue Dec 24 16:13:32 2013 -0500 +++ b/Doc/c-api/memory.rst Wed Dec 25 05:08:46 2013 +0400 @@ -323,6 +323,12 @@ Set the arena allocator. +.. c:function:: void* PyObject_Malloc(size_t n) + + if *n* is less than 512, allocates *n* bytes with *pymalloc* allocator and + returns a pointer of type :c:type:`void\*` to the allocated memory, or + *NULL* if the request fails. + Falls back to :c:func:`PyMem_RawMalloc` for allocations larger than 512 bytes. .. _memoryexamples: