tomer filiba wrote:
> when a proxy is created for an object in another
> process, you can only set __class__ to a *proxy* to the remote type...
> so isinstance fails.
But the class being passed to isinstance() can only be
a proxy to the remote class as well, so as long as it's
the same proxy that the overridden __class__ returns,
it should work, shouldn't it?
IOW,
in process A:
x.__class__ is X
so
isinstance(x, X) == True
in process B:
x_proxy.__class__ is X_proxy
so
isinstance(x_proxy, X_proxy) == True
--
Greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com