[Python-checkins] r47098 - python/trunk/Doc/whatsnew/whatsnew25.tex

andrew.kuchling python-checkins at python.org
Mon Jun 26 14:43:43 CEST 2006


Author: andrew.kuchling
Date: Mon Jun 26 14:43:43 2006
New Revision: 47098

Modified:
   python/trunk/Doc/whatsnew/whatsnew25.tex
Log:
Describe workaround for PyRange_New()'s removal

Modified: python/trunk/Doc/whatsnew/whatsnew25.tex
==============================================================================
--- python/trunk/Doc/whatsnew/whatsnew25.tex	(original)
+++ python/trunk/Doc/whatsnew/whatsnew25.tex	Mon Jun 26 14:43:43 2006
@@ -2276,7 +2276,12 @@
 
 \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 @@
 
 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.
 


More information about the Python-checkins mailing list