Search
From here you can search these documents. Enter your search words into the box below and click "search". Note that the search function will automatically search for all of the words. Pages containing fewer words won't appear in the result list.
Search Results
Search finished, found 7 page(s) matching the search query.
- PyObject_Malloc (C function, in Memory Management)
- Changelog...c module to get the traceback where a memory block was allocated. bpo-26558: The debug hooks on Python memory allocator PyObject_Malloc() now detect when functions are called without holding the GIL. bpo-26516: Add PYTHONMALLOC environment...
- Memory Management...ault, these functions use pymalloc memory allocator. Warning The GIL must be held when using these functions. void* PyObject_Malloc(size_t n) Allocates n bytes and returns a pointer of type void* to the allocated memory, or NULL if the...
- What’s New in Python 2.3...ore, and calling the wrong function to free memory may get you a core dump. For example, if memory was allocated using PyObject_Malloc(), it has to be freed using PyObject_Free(), not free(). A few modules included with Python fell afoul...
- What’s New in Python 2.5...milies. For example, PyMem_Malloc(), PyMem_Realloc(), and PyMem_Free() are one family that allocates raw memory, while PyObject_Malloc(), PyObject_Realloc(), and PyObject_Free() are another family that’s supposed to be used for creating Py...
- What’s New In Python 3.4...located by the interpreter. (In CPython with the default --with-pymalloc setting, this is allocations made through the PyObject_Malloc() API.) This can be useful for tracking memory leaks, especially if automated via a test suite. (Contr...
- What’s New In Python 3.6...ter the end of a buffer (buffer overflows) Check that the GIL is held when allocator functions of PYMEM_DOMAIN_OBJ (ex: PyObject_Malloc()) and PYMEM_DOMAIN_MEM (ex: PyMem_Malloc()) domains are called. Checking if the GIL is held is also a...