summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-04-10 20:28:17 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-04-10 20:28:17 (GMT)
commit0bc2ab9a20745e3cc7a2ca4cc01a3708e273e2dc (patch)
tree8c4064913b744ff0a8bcd5fbdcac81c5e0bc0dc1 /Doc/api
parenta19dc0beb1d2e499b86f56a992e78e7e3d767ee3 (diff)
downloadcpython-0bc2ab9a20745e3cc7a2ca4cc01a3708e273e2dc.zip
cpython-0bc2ab9a20745e3cc7a2ca4cc01a3708e273e2dc.tar.gz
cpython-0bc2ab9a20745e3cc7a2ca4cc01a3708e273e2dc.tar.bz2
Patch #837242: id() for large ptr should return a long.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index 98e0e03..1982bae 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -333,7 +333,9 @@ booleans. The following macros are available, however.
The pointer value can be retrieved from the resulting value using
\cfunction{PyLong_AsVoidPtr()}.
\versionadded{1.5.2}
-\end{cfuncdesc}
+ \versionchanged[If the integer is larger than LONG_MAX,
+ a positive long integer is returned]{2.5}
+ \end{cfuncdesc}
\begin{cfuncdesc}{long}{PyLong_AsLong}{PyObject *pylong}
Return a C \ctype{long} representation of the contents of
@@ -394,6 +396,8 @@ booleans. The following macros are available, however.
produce a usable \ctype{void} pointer for values created with
\cfunction{PyLong_FromVoidPtr()}.
\versionadded{1.5.2}
+ \versionchanged[For values outside 0..LONG_MAX, both signed and
+ unsigned integers are acccepted]{2.5}
\end{cfuncdesc}