[Python-checkins] r46818 - python/trunk/Objects/dictobject.c
armin.rigo
python-checkins at python.org
Sat Jun 10 12:57:40 CEST 2006
Author: armin.rigo
Date: Sat Jun 10 12:57:40 2006
New Revision: 46818
Modified:
python/trunk/Objects/dictobject.c
Log:
SF bug #1503294.
PyThreadState_GET() complains if the tstate is NULL, but only in debug mode.
Modified: python/trunk/Objects/dictobject.c
==============================================================================
--- python/trunk/Objects/dictobject.c (original)
+++ python/trunk/Objects/dictobject.c Sat Jun 10 12:57:40 2006
@@ -561,7 +561,7 @@
/* We can arrive here with a NULL tstate during initialization:
try running "python -Wi" for an example related to string
interning. Let's just hope that no exception occurs then... */
- tstate = PyThreadState_GET();
+ tstate = _PyThreadState_Current;
if (tstate != NULL && tstate->curexc_type != NULL) {
/* preserve the existing exception */
PyObject *err_type, *err_value, *err_tb;
More information about the Python-checkins
mailing list