ExtensionClass.Base has no __module__ var

Bug #143302 reported by Christian Heimes
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Medium
Unassigned

Bug Description

ExtensionClass.Base and ExtensionClass.ExtensionClass have no __module__ var. Acquisition.Implicit.__module__ is a string instead a reference to the module.

>>> import ExtensionClass
>>> ExtensionClass.Base.__module__
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: __module__
>>> ExtensionClass.ExtensionClass.__module__
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: __module__
>>> import Acquisition
>>> Acquisition.Implicit.__module__
'Acquisition'
>>> type(Acquisition.Implicit.__module__)
<type 'str'>

Tags: bug zope
Revision history for this message
Hanno Schlichting (hannosch) wrote :

I actually fixed this recently in ExtensionClass.

Changed in zope2:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.