diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-03-02 20:48:25 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-03-02 20:48:25 +0000 |
commit | 5f4390fb0943c0e8ce857ff91e11b5c19b52b506 (patch) | |
tree | 044e417813f987f2cb19839b1dddc0c12846ac56 /Include/pyarena.h | |
parent | 7eaf2aaf48c08c8bcf639f6b29c1697fd9f02dfb (diff) | |
download | cpython-git-5f4390fb0943c0e8ce857ff91e11b5c19b52b506.tar.gz |
New XXX pointing out errors in the description of
PyArena_New(); unsure what the intent is.
Diffstat (limited to 'Include/pyarena.h')
-rw-r--r-- | Include/pyarena.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pyarena.h b/Include/pyarena.h index 570fceab0e..16365563ad 100644 --- a/Include/pyarena.h +++ b/Include/pyarena.h @@ -17,6 +17,12 @@ extern "C" { PyArena_New() returns an arena pointer. On error, it returns a negative number and sets an exception. + XXX (tim): Not true. On error, PyArena_New() actually returns NULL, + XXX and looks like it may or may not set an exception (e.g., if the + XXX internal PyList_New(0) returns NULL, PyArena_New() passes that on + XXX and an exception is set; OTOH, if the internal + XXX block_new(DEFAULT_BLOCK_SIZE) returns NULL, that's passed on but + XXX an exception is not set in that case). */ PyAPI_FUNC(PyArena *) PyArena_New(void); PyAPI_FUNC(void) PyArena_Free(PyArena *); |