Issue1979

classification
Title: ast.Attribute reference broken
Type: Severity: normal
Components: Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, fwierzbicki
Priority: Keywords:

Created on 2012-10-23.21:48:00 by Arfrever, last changed 2012-10-23.23:23:02 by Arfrever.

Messages
msg7483 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2012-10-23.21:47:59
Without fix:

>>> ast.Attribute
<type '_ast.AugAssign'>

With fix:

>>> ast.Attribute
<type '_ast.Attribute'>

Patch:

--- src/org/python/antlr/ast/AstModule.java
+++ src/org/python/antlr/ast/AstModule.java
@@ -35,7 +35,7 @@
         dict.__setitem__("Module", Module.TYPE);
         dict.__setitem__("Assert", Assert.TYPE);
         dict.__setitem__("Assign", Assign.TYPE);
-        dict.__setitem__("Attribute", AugAssign.TYPE);
+        dict.__setitem__("Attribute", Attribute.TYPE);
         dict.__setitem__("AugAssign", AugAssign.TYPE);
         dict.__setitem__("BinOp", BinOp.TYPE);
         dict.__setitem__("BoolOp", BoolOp.TYPE);
msg7484 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2012-10-23.21:50:52
This bug is present in Jython 2.5 and 2.7.
msg7487 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2012-10-23.23:23:02
2.5: http://hg.python.org/jython/rev/84a53e5f4c7e
2.7: http://hg.python.org/jython/rev/4b94fb54b573
History
Date User Action Args
2012-10-23 23:23:02Arfreversetmessages: + msg7487
2012-10-23 22:20:02alex.gronholmsetstatus: open -> closed
resolution: fixed
2012-10-23 21:50:52Arfreversetmessages: + msg7484
2012-10-23 21:48:00Arfrevercreate