Merged revisions 55588-55630 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/p3yk

........
  r55598 | neal.norwitz | 2007-05-26 10:44:02 +0800 (Sat, 26 May 2007) | 1 line

  Fix refleak on infinite recursion
........
  r55599 | neal.norwitz | 2007-05-26 10:47:45 +0800 (Sat, 26 May 2007) | 1 line

  Add news entry about overidding isinstance/issubclass (PEP 3119)
........
  r55629 | brett.cannon | 2007-05-29 08:06:59 +0800 (Tue, 29 May 2007) | 3 lines

  Delete the cstubs module.  Used as input to Modules/cgen.py to generate the gl
  module which has already been removed.
........
This commit is contained in:
Guido van Rossum 2007-05-29 00:39:44 +00:00
parent 644e149b11
commit 29478ef990
3 changed files with 5 additions and 1363 deletions

View File

@ -26,6 +26,8 @@ TO DO
Core and Builtins
-----------------
- PEP 3119: isinstance() and issubclass() can be overridden.
- Remove BaseException.message.
- Remove tuple parameter unpacking (PEP 3113).

File diff suppressed because it is too large Load Diff

View File

@ -2137,8 +2137,10 @@ PyObject_IsInstance(PyObject *inst, PyObject *cls)
if (checker != NULL) {
PyObject *res;
int ok = -1;
if (Py_EnterRecursiveCall(" in __instancecheck__"))
if (Py_EnterRecursiveCall(" in __instancecheck__")) {
Py_DECREF(checker);
return ok;
}
res = PyObject_CallFunctionObjArgs(checker, inst, NULL);
Py_LeaveRecursiveCall();
Py_DECREF(checker);