[Python-Dev] Semantic of isinstance
"Martin v. Löwis"
martin at v.loewis.de
Tue Jun 27 14:52:54 CEST 2006
More information about the Python-Dev mailing list
Tue Jun 27 14:52:54 CEST 2006
- Previous message: [Python-Dev] Semantic of isinstance
- Next message: [Python-Dev] Semantic of isinstance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin Maly wrote: > Thanks for the response. The code snippet I sent deals with new style > classes only so I assume that in some cases isinstance falls back to > old-style-like handling which then asks for __bases__ and __class__ > etc, possibly incorrectly so on new style classes. Again, I believe this is all included for ExtensionClasses: it looks for __class__ on the object if the type check fails, so that an ExtensionClass could be actually a class derived from the C type. Regards, Martin
- Previous message: [Python-Dev] Semantic of isinstance
- Next message: [Python-Dev] Semantic of isinstance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list