[Python-checkins] python/dist/src/Doc/api init.tex,1.7,1.8

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Tue, 15 Apr 2003 08:11:23 -0700


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

Modified Files:
	init.tex 
Log Message:
- pythunrun.c, Py_Finalize(): move the call to _Py_PrintReferences()
  even farther down, to just before the call to
  _PyObject_DebugMallocStats().  This required the following changes:

- pystate.c, PyThreadState_GetDict(): changed not to raise an
  exception or issue a fatal error when no current thread state is
  available, but simply return NULL without raising an exception
  (ever).

- object.c, Py_ReprEnter(): when PyThreadState_GetDict() returns NULL,
  don't raise an exception but return 0.  This means that when
  printing a container that's recursive, printing will go on and on
  and on.  But that shouldn't happen in the case we care about (see
  first bullet).

- Updated Misc/NEWS and Doc/api/init.tex to reflect changes to
  PyThreadState_GetDict() definition.



Index: init.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/init.tex,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** init.tex	2 Mar 2003 13:17:20 -0000	1.7
--- init.tex	15 Apr 2003 15:10:49 -0000	1.8
***************
*** 678,684 ****
    Return a dictionary in which extensions can store thread-specific
    state information.  Each extension should use a unique key to use to
!   store state in the dictionary.  If this function returns \NULL, an
!   exception has been raised and the caller should allow it to
!   propagate.
  \end{cfuncdesc}
  
--- 678,687 ----
    Return a dictionary in which extensions can store thread-specific
    state information.  Each extension should use a unique key to use to
!   store state in the dictionary.  It is okay to call this function
!   when no current thread state is available.
!   If this function returns \NULL, no exception has been raised and the
!   caller should assume no current thread state is available.
!   \versionchanged[Previously this could only be called when a current
!   thread is active, and \NULL meant that an exception was raised]{2.3}
  \end{cfuncdesc}