← Back to team overview

divmod-dev team mailing list archive

[Bug 811792] Re: AttributeError: 'MetaTypedInterface' object has no attribute '__name__'


After looking at this, I find that the bug is in formless'
MetaTypedInterface, which is trying to hash the partially constructed
object from within its own __new__ (i.e., before invoking the __init__
of its superclass).

Note that the proposed change to zope.interface (using '' as the default
value for __name__) actually defeats the point of storing the values in
the module-scope '_typedInterfaceMetadata' mapping:  the object will
hash differently after it is fully initialized, and therefore won't be
found in that mapping at all.  A better fix would be to set __name__ on
the instance inside the __new__.

** Changed in: zope.interface
       Status: Confirmed => Invalid

You received this bug notification because you are a member of Divmod-
dev, which is the registrant for nevow.

  AttributeError: 'MetaTypedInterface' object has no attribute

Status in Divmod Nevow:
Status in Tahoe, the Lovely Accessible File System:
  Fix Released
Status in zope.interface:

Bug description:
  This is with Nevow 0.10.0 and zope.interface 3.6.4. David-Sarah
  Hopwood and Drew Perttula each independently reported this error. (I
  haven't seen it personally, I'm just reporting what they posted.) Drew
  included a patch to zope.interface work-around it:



To manage notifications about this bug go to: