[Python-3000] iostack and Oh Oh (original) (raw)
Guido van Rossum guido at python.org
Fri Dec 1 19:19:07 CET 2006
- Previous message: [Python-3000] iostack and Oh Oh
- Next message: [Python-3000] iostack and Oh Oh
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 > doesimplement special method that will be called by > doesimplement(), 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/)
- Previous message: [Python-3000] iostack and Oh Oh
- Next message: [Python-3000] iostack and Oh Oh
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]