[Python-3000] iostack and Oh Oh

Guido van Rossum guido at python.org
Fri Dec 1 19:19:07 CET 2006


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.

>  > the only way out of this, that i can think of, would require introducing a
>  > __does_implement__ special method that will be called by
>  > does_implement(), or whatever the name will be. of course you could
>  > add a new ABC for that purpose, i.e., CustomImplementer.
>
> This only works if there's only one interface system.  As soon as there are
> multiple systems at work in parallel (possibly because different libraries
> require them, even if the app doesn't care), this is going to get quite
> complex.
>
> I wish I had some good insight on how to deal with this, but I don't.  Jim
> Fulton might have some ideas since he dealt with all this for zope.interface.
> He's likely pretty busy right now, though.  (And I don't know if he's on this
> list.)

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


More information about the Python-3000 mailing list