Menu

#223 pychecker tracebacks when importing zope.interface.declarati

0.8.19
closed-fixed
nobody
None
5
2011-01-06
2006-09-22
No

zope.interface.declarations.Declaration tries to be
like a class (has __bases__) but does not have __name__

pychecker accesses it once it decides it wants to treat
it as a class, causing a traceback.

Caught exception importing module
zope.interface.declarations:
File
"/usr/lib/python2.4/site-packages/pychecker/checker.py",
line 610, in _initModule()
self.addClass(tokenName)
File
"/usr/lib/python2.4/site-packages/pychecker/checker.py",
line 530, in addClass()
self.__addAttributes(c, c.classObject)
File
"/usr/lib/python2.4/site-packages/pychecker/checker.py",
line 516, in __addAttributes()
c.addMethods(classObject)
File
"/usr/lib/python2.4/site-packages/pychecker/checker.py",
line 333, in addMethods()
self.addMethod(methodName, classObject.__name__)
AttributeError: 'Declaration' object has no attribute
'__name__'

(This is a simple one-line python file that does
"import zope.interface.declarations")

Discussion

  • Thomas Vander Stichele

    • status: open --> open-fixed
     
  • Thomas Vander Stichele

    • milestone: --> 854593
     
  • Thomas Vander Stichele

    • status: open-fixed --> closed-fixed
     
  • Thomas Vander Stichele

    • milestone: 854593 --> 0.8.19
     

Log in to post a comment.

MongoDB Logo MongoDB