diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-06-26 12:43:43 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-06-26 12:43:43 (GMT) |
commit | cd77e1cb2d8fc02fb8be8961ce45c121dcede6d6 (patch) | |
tree | e1b78f9d58bc10a67ddb9256ef3e95ba84f428d8 /Doc | |
parent | 1a0e129864403239c38fecbdc4b8f916229bc6aa (diff) | |
download | cpython-cd77e1cb2d8fc02fb8be8961ce45c121dcede6d6.zip cpython-cd77e1cb2d8fc02fb8be8961ce45c121dcede6d6.tar.gz cpython-cd77e1cb2d8fc02fb8be8961ce45c121dcede6d6.tar.bz2 |
Describe workaround for PyRange_New()'s removal
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index adc4da6..234f0b3 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -2276,7 +2276,12 @@ the code can now be compiled with a {\Cpp} compiler without errors. \item The \cfunction{PyRange_New()} function was removed. It was never documented, never used in the core code, and had dangerously lax -error checking. +error checking. In the unlikely case that your extensions were using +it, you can replace it by something like the following: +\begin{verbatim} +range = PyObject_CallFunction((PyObject*) &PyRange_Type, "lll", + start, stop, step); +\end{verbatim} \end{itemize} @@ -2408,7 +2413,7 @@ freed with the corresponding family's \cfunction{*_Free()} function. The author would like to thank the following people for offering suggestions, corrections and assistance with various drafts of this -article: Nick Coghlan, Phillip J. Eby, "Ralf W. Grosse-Kunstleve, Kent +article: Nick Coghlan, Phillip J. Eby, Ralf W. Grosse-Kunstleve, Kent Johnson, Martin von~L\"owis, Fredrik Lundh, Gustavo Niemeyer, James Pryor, Mike Rovner, Scott Weikart, Barry Warsaw, Thomas Wouters. |