Decouple Interface and zope.interface (Martijn was right)
My plan has been to make zope.interface interfaces and Interface interfaces interoperate. Martijn Faassen has been complaining about this for a while, because, to use zope.interface and Interface together required a hard-to-install facade. If we drop the requirement to make the interfaces interoperate (e.g. extend one another, or be used in the same declarations), then, with a small change that Martijn has suggested, we can use zope.interface in Zope 2 without any other changes. The Interface package isn't used very heavily in Zope 2. When it is used, it's used solely for documentation. After further reflection, I don't really see a compelling reason to endure pain to make Interface interfaces usable for Zope 3 interface operations. IOW: Martijn was right and I was wrong. :) I propose to drop the dubious requirement for interoperability between Interface and zope.interface. I propose, instead, to add a requirement that they be able to coexist. This will require changing the name of an attribute used internally by zope.interfaces. It will also allow us to simplify certain aspects of the implementation in zope.interface that exists solely to support Interface interfaces. Jim -- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
Jim Fulton wrote: [decouple interface implementation] *falls into a dead faint* *wakes up and starts bouncing around* *Loud cheering!* Awesome, thanks, Jim! A good start of my working week, too. *cough* *regains composure* *ahum* +1 Regards, Martijn
On Sunday 25 April 2004 06:57 am, Jim Fulton wrote:
If we drop the requirement to make the interfaces interoperate (e.g. extend one another, or be used in the same declarations), then, with a small change that Martijn has suggested, we can use zope.interface in Zope 2 without any other changes.
That would be terrific! (Makes my life easier, anyway). Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
participants (3)
-
Jim Fulton -
Martijn Faassen -
Terry Hancock