[Python-checkins] python/dist/src/Misc NEWS,1.723,1.724
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Tue, 15 Apr 2003 08:11:21 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv28051/Misc
Modified Files:
NEWS
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: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.723
retrieving revision 1.724
diff -C2 -d -r1.723 -r1.724
*** NEWS 14 Apr 2003 22:01:51 -0000 1.723
--- NEWS 15 Apr 2003 15:10:42 -0000 1.724
***************
*** 151,154 ****
--- 151,158 ----
-----
+ - PyThreadState_GetDict() was changed not to raise an exception or
+ issue a fatal error when no current thread state is available. This
+ makes it possible to print dictionaries when no thread is active.
+
- LONG_LONG was renamed to PY_LONG_LONG.