Guido van Rossum wrote: > Here's an implementation of Neil's idea. > > *** abstract.c 2001/10/01 17:10:18 2.83 > --- abstract.c 2001/10/05 15:49:04 > *************** > *** 1805,1810 **** > --- 1805,1829 ---- > else if (PyType_Check(cls)) { > retval = PyObject_TypeCheck(inst, (PyTypeObject *)cls); > } > + else if (PySequence_Check(cls)) { > + int i, n; Is is possible that a type also passes PySequence_Check? If so, that could lead to confusing behavior. Neil
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4