diff options
author | Guido van Rossum <guido@python.org> | 2000-12-19 03:53:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-19 03:53:57 (GMT) |
commit | 9a18a7ed0390d5ce7dedff1c4d44443a9d71e511 (patch) | |
tree | 13402d4843b564fd88bf78b75ba28ceb995006a1 /Doc/api | |
parent | 3dbb406335db06d669bb9a80ccafff7dedda826a (diff) | |
download | cpython-9a18a7ed0390d5ce7dedff1c4d44443a9d71e511.zip cpython-9a18a7ed0390d5ce7dedff1c4d44443a9d71e511.tar.gz cpython-9a18a7ed0390d5ce7dedff1c4d44443a9d71e511.tar.bz2 |
Document Pyerr_Warn().
Add an XXX comment at the beginning expressing disappointment over the
confusing way refcount behavior of arguments is documented.
Diffstat (limited to 'Doc/api')
-rw-r--r-- | Doc/api/refcounts.dat | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/api/refcounts.dat b/Doc/api/refcounts.dat index aace695..0d8d6af 100644 --- a/Doc/api/refcounts.dat +++ b/Doc/api/refcounts.dat @@ -21,6 +21,13 @@ # always return NULL. This is used by some of the PyErr_*() functions, in # particular. +# XXX NOTE: the 0/+1/-1 refcount information for arguments is +# confusing! Much more useful would be to indicate whether the +# function "steals" a reference to the argument or not. Take for +# example PyList_SetItem(list, i, item). This lists as a 0 change for +# both the list and the item arguments. However, in fact it steals a +# reference to the item argument! + # The parameter names are as they appear in the API manual, not the source # code. @@ -199,6 +206,10 @@ PyErr_Format:PyObject*:exception:+1: PyErr_Format:char*:format:: PyErr_Format::...:: +PyErr_Warn:int::: +PyErr_Warn:PyObject*:category:0 or +1: +PyErr_Warn:char*:message:: + PyEval_AcquireLock:void::: PyEval_AcquireThread:void::: |