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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com