[Python-3000] iostack and Oh Oh

Guido van Rossum guido at python.org
Fri Dec 1 20:25:50 CET 2006


On 12/1/06, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 10:19 AM 12/1/2006 -0800, Guido van Rossum wrote:
> >On 12/1/06, Fred L. Drake, Jr. <fdrake at acm.org> wrote:
> > > On Friday 01 December 2006 12:08, tomer filiba wrote:
> > >  > i would still like to understand how object proxying (e.g., weakrefs,
> > >  > RPyC), could work when all/most frameworks/libraries would be based on
> > >  > ABCs.
> > >
> > > That's a realy problem.  zope.interface works hard to deal with
> > proxies, but
> > > it probably only works with proxies based on zope.proxy.
> >
> >I think the proper solution is to make isinstance() overridable by the
> >instance.
>
> It already is, and has been since Python 2.3, in large part to support
> zope-style proxying.  It's also leveraged by my ProxyTypes package in the
> Cheeseshop, and by a few bits of code in Chandler.

I know (I should, since I wrote the code :-) but I think the solution
could be much cleaner.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list