#4 objects are misclassified as classes

v1.1
closed-fixed
None
5
2002-09-19
2002-07-28
Anonymous
No

On importing python code, objects in the module
namespace are incorrectly regarded as classes, which
leads to an exception, becasue they have no .__name__.

This is due to some dubious code in IOPython line 760,
which I have just replaced as follows:

# Get classes
classD={}
for module in lstModules:
for cl in module.__dict__.values():
if type(cl) in (types.ClassType,
types.TypeType):
classD[cl] = 1
classes = classD.keys()

Discussion

  • Cédric Dutoit
    Cédric Dutoit
    2002-09-19

    • milestone: --> v1.1
    • assigned_to: nobody --> dutoitc
    • status: open --> closed-fixed