astvisitor.derive_class_name throws exception on call syntax in base classes

Bug #460715 reported by ryan.freckleton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pythoscope
Fix Released
Medium
Michal Kwiatkowski

Bug Description

When attempting to initialize pythoscope against a file such as urlparse.py in the standard library, an ASTError("Unknown node type: (") exception is raised. This can easily be reproduced by runing pythoscope -i on the following class:

    class Example(namedtuple('a')):
        pass

The exception is raised on line 76 of astvisitor.py.

Attached is debug output with a detailed stack trace and the exact node that caused the problem. I've also attached a patch to test/test_static_inspector.py which uncovers this specific error.

Revision history for this message
ryan.freckleton (ryan-freckleton) wrote :
Revision history for this message
ryan.freckleton (ryan-freckleton) wrote :
Changed in pythoscope:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Michal Kwiatkowski (ruby)
Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Fixed in trunk r307.

Changed in pythoscope:
status: Confirmed → Fix Committed
milestone: none → 0.4.2-dependency-cleanup
Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Fix released in Pythoscope 0.4.2.

Changed in pythoscope:
status: Fix Committed → 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.