[Python-3000] Could isinstance/issubclass overriding be dangerous? (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Apr 30 03:48:45 CEST 2007


Currently, isinstance(x, C) implies that the C struct layout of x is compatible with that defined by C. I'm worried that changing this could cause difficulties for extension modules that use PyObject_IsInstance do decide what to do with things, e.g. in a binary operator method.

-- Greg



More information about the Python-3000 mailing list