[Python-checkins] r72509 - python/trunk/Objects/abstract.c
benjamin.peterson
python-checkins at python.org
Sat May 9 18:51:51 CEST 2009
Author: benjamin.peterson
Date: Sat May 9 18:51:51 2009
New Revision: 72509
Log:
ignore classic classes
Modified:
python/trunk/Objects/abstract.c
Modified: python/trunk/Objects/abstract.c
==============================================================================
--- python/trunk/Objects/abstract.c (original)
+++ python/trunk/Objects/abstract.c Sat May 9 18:51:51 2009
@@ -107,6 +107,8 @@
PyErr_Clear();
}
+ if (PyInstance_Check(o))
+ return defaultvalue;
/* try o.__length_hint__() */
hintmeth = _PyObject_LookupSpecial(o, "__length_hint__", &hintstrobj);
if (hintmeth == NULL)
More information about the Python-checkins
mailing list