[Python-checkins] r83185 - in python/branches/release31-maint: Misc/ACKS Objects/object.c
antoine.pitrou
python-checkins at python.org
Wed Jul 28 00:09:59 CEST 2010
Author: antoine.pitrou
Date: Wed Jul 28 00:09:59 2010
New Revision: 83185
Log:
Merged revisions 83184 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83184 | antoine.pitrou | 2010-07-28 00:08:27 +0200 (mer., 28 juil. 2010) | 3 lines
Issue #9294: remove dead code in Objects/object.c. Patch by Grant Limberg.
........
Modified:
python/branches/release31-maint/ (props changed)
python/branches/release31-maint/Misc/ACKS
python/branches/release31-maint/Objects/object.c
Modified: python/branches/release31-maint/Misc/ACKS
==============================================================================
--- python/branches/release31-maint/Misc/ACKS (original)
+++ python/branches/release31-maint/Misc/ACKS Wed Jul 28 00:09:59 2010
@@ -454,6 +454,7 @@
Ross Light
Shawn Ligocki
Martin Ligr
+Grant Limberg
Christopher Lindblad
Bjorn Lindqvist
Per Lindqvist
Modified: python/branches/release31-maint/Objects/object.c
==============================================================================
--- python/branches/release31-maint/Objects/object.c (original)
+++ python/branches/release31-maint/Objects/object.c Wed Jul 28 00:09:59 2010
@@ -258,15 +258,10 @@
return PyObject_INIT_VAR(op, tp, nitems);
}
-/* Implementation of PyObject_Print with recursion checking */
-static int
-internal_print(PyObject *op, FILE *fp, int flags, int nesting)
+int
+PyObject_Print(PyObject *op, FILE *fp, int flags)
{
int ret = 0;
- if (nesting > 10) {
- PyErr_SetString(PyExc_RuntimeError, "print recursion");
- return -1;
- }
if (PyErr_CheckSignals())
return -1;
#ifdef USE_STACKCHECK
@@ -333,12 +328,6 @@
return ret;
}
-int
-PyObject_Print(PyObject *op, FILE *fp, int flags)
-{
- return internal_print(op, fp, flags, 0);
-}
-
/* For debugging convenience. Set a breakpoint here and call it from your DLL */
void
_Py_BreakPoint(void)
More information about the Python-checkins
mailing list