[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
- Previous message: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)
- Next message: [Python-3000] Could isinstance/issubclass overriding be dangerous?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)
- Next message: [Python-3000] Could isinstance/issubclass overriding be dangerous?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]