[Python-3000] iostack and Oh Oh
Phillip J. Eby
pje at telecommunity.com
Fri Dec 1 19:57:53 CET 2006
At 01:45 PM 12/1/2006 -0500, Jim Jewett wrote:
>Why can't your proxy be a derived class that claims to inherit
>from those same base classes, but just happens to override all the
>methods (and attributes).
Because that means you can't use generic proxy objects (e.g. zope.proxy or
Luckily, however, proxies can lie about their __class__ (since Python 2.3)
and thereby fool isinstance().
More information about the Python-3000