[Python-checkins] python/dist/src/Doc/whatsnew whatsnew22.tex, 1.62, 1.63 whatsnew23.tex, 1.160, 1.161

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Fri Aug 29 11:49:29 EDT 2003


Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1:/tmp/cvs-serv30107

Modified Files:
	whatsnew22.tex whatsnew23.tex 
Log Message:
[Bug #780231]  One of the changes described in the 2.3 "What's New" document
   actually occurred in 2.2.  Move the description to whatsnew22.tex.

[Bugfix candidate -- I'll backport to 2.3 (another 2.2 bugfix seems unlikely)


Index: whatsnew22.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew22.tex,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** whatsnew22.tex	20 May 2003 18:12:21 -0000	1.62
--- whatsnew22.tex	29 Aug 2003 17:49:26 -0000	1.63
***************
*** 1227,1230 ****
--- 1227,1257 ----
    states for a given interpreter.  (Contributed by David Beazley.)
  
+ \item The C-level interface to the garbage collector has been changed
+ to make it easier to write extension types that support garbage
+ collection and to debug misuses of the functions.
+ Various functions have slightly different semantics, so a bunch of
+ functions had to be renamed.  Extensions that use the old API will
+ still compile but will \emph{not} participate in garbage collection,
+ so updating them for 2.2 should be considered fairly high priority.
+ 
+ To upgrade an extension module to the new API, perform the following
+ steps:
+ 
+ \begin{itemize}
+ 
+ \item Rename \cfunction{Py_TPFLAGS_GC} to \cfunction{PyTPFLAGS_HAVE_GC}.
+ 
+ \item Use \cfunction{PyObject_GC_New} or \cfunction{PyObject_GC_NewVar} to
+ allocate objects, and \cfunction{PyObject_GC_Del} to deallocate them.
+ 
+ \item Rename \cfunction{PyObject_GC_Init} to \cfunction{PyObject_GC_Track} and
+ \cfunction{PyObject_GC_Fini} to \cfunction{PyObject_GC_UnTrack}.
+ 
+ \item Remove \cfunction{PyGC_HEAD_SIZE} from object size calculations.
+ 
+ \item Remove calls to \cfunction{PyObject_AS_GC} and \cfunction{PyObject_FROM_GC}.
+ 
+ \end{itemize}
+ 
    \item A new \samp{et} format sequence was added to
    \cfunction{PyArg_ParseTuple}; \samp{et} takes both a parameter and

Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.160
retrieving revision 1.161
diff -C2 -d -r1.160 -r1.161
*** whatsnew23.tex	30 Jul 2003 11:55:06 -0000	1.160
--- whatsnew23.tex	29 Aug 2003 17:49:26 -0000	1.161
***************
*** 2137,2167 ****
  \begin{itemize}
  
- \item The C-level interface to the garbage collector has been changed
- to make it easier to write extension types that support garbage
- collection and to debug misuses of the functions.
- Various functions have slightly different semantics, so a bunch of
- functions had to be renamed.  Extensions that use the old API will
- still compile but will \emph{not} participate in garbage collection,
- so updating them for 2.3 should be considered fairly high priority.
- 
- To upgrade an extension module to the new API, perform the following
- steps:
- 
- \begin{itemize}
- 
- \item Rename \cfunction{Py_TPFLAGS_GC} to \cfunction{PyTPFLAGS_HAVE_GC}.
- 
- \item Use \cfunction{PyObject_GC_New} or \cfunction{PyObject_GC_NewVar} to
- allocate objects, and \cfunction{PyObject_GC_Del} to deallocate them.
- 
- \item Rename \cfunction{PyObject_GC_Init} to \cfunction{PyObject_GC_Track} and
- \cfunction{PyObject_GC_Fini} to \cfunction{PyObject_GC_UnTrack}.
- 
- \item Remove \cfunction{PyGC_HEAD_SIZE} from object size calculations.
- 
- \item Remove calls to \cfunction{PyObject_AS_GC} and \cfunction{PyObject_FROM_GC}.
- 
- \end{itemize}
- 
  \item The cycle detection implementation used by the garbage collection
  has proven to be stable, so it's now been made mandatory.  You can no
--- 2137,2140 ----





More information about the Python-checkins mailing list