There was an error while loading. Please reload this page.
1 parent 7eaf2aa commit 5f4390fCopy full SHA for 5f4390f
1 file changed
Include/pyarena.h
@@ -17,6 +17,12 @@ extern "C" {
17
18
PyArena_New() returns an arena pointer. On error, it
19
returns a negative number and sets an exception.
20
+ XXX (tim): Not true. On error, PyArena_New() actually returns NULL,
21
+ XXX and looks like it may or may not set an exception (e.g., if the
22
+ XXX internal PyList_New(0) returns NULL, PyArena_New() passes that on
23
+ XXX and an exception is set; OTOH, if the internal
24
+ XXX block_new(DEFAULT_BLOCK_SIZE) returns NULL, that's passed on but
25
+ XXX an exception is not set in that case).
26
*/
27
PyAPI_FUNC(PyArena *) PyArena_New(void);
28
PyAPI_FUNC(void) PyArena_Free(PyArena *);
0 commit comments