[Zope-dev] Adapter for class with slots

Wolfgang Schnerring ws at gocept.com
Tue Dec 15 09:24:52 EST 2009


* Wolfgang Schnerring <ws at gocept.com> [2009-12-07 08:53]:
>>> The minimal reproduction recipe to see the error is this:
>>> 
>>>     class Slotted(object):
>>>         __slots__ = ('__provides__')
>>> 
>>>     zope.component.provideAdapter(
>>>         lambda x: True, (Slotted,), zope.interface.Interface)
> I'll try and see whether I can come up with a way for zope.interface to
> do the Right Thing(tm) in this situation.

I forgot to mention this here: the edge case has been fixed and released
in zope.interface-3.5.3

Wolfgang



More information about the Zope-Dev mailing list