This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tuck_williamson
Recipients
Date 2003-06-05.18:51:49
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I suggest adding proxy support to isinstance along the
lines of  the following pseudocode.

if object is instance of ProxyTypes:
    check using object.__class__ (which is accessed via
the proxy)
else:
    perform normal isinstance checking.

weakref.proxy is intended to hide the details of using
weakrefs . The illusion is dispelled when using
isinstance. Ideally isinstance shouldn't be modified
and the proxy class should just do the right thing, but
I am not sure that is feasable to attain that level of
info hiding while retaining the abitily to do both
isinstance(x, weakref.ProxyTypes) and isinstance(x,
xParentTypes).
History
Date User Action Args
2008-01-20 09:59:25adminlinkissue749722 messages
2008-01-20 09:59:25admincreate