[Python-Dev] Semantic of isinstance (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jun 27 07:08:06 CEST 2006
- Previous message: [Python-Dev] Semantic of isinstance
- Next message: [Python-Dev] Semantic of isinstance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip J. Eby wrote:
It's not inconsistent - isinstance() checks class in addition to type() in order to allow proxying tricks like lying about your class.
If this is a deliberate feature, it's a bit patchy, because it means the proxy can't lie about not being an instance of its real type.
Perhaps Guido could clarify how much lying a proxy is supposed to be able to get away with?
-- Greg
- Previous message: [Python-Dev] Semantic of isinstance
- Next message: [Python-Dev] Semantic of isinstance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]