2008-09-21 | Paul Boddie | raw files shortlog changelog graph | Apply the simple case immediate assignment optimisation to attribute assignment. | |
micropython/ast.py (file) |
1.1 --- a/micropython/ast.py Sun Sep 21 21:17:51 2008 +0200 1.2 +++ b/micropython/ast.py Sun Sep 21 21:48:17 2008 +0200 1.3 @@ -1518,7 +1518,7 @@ 1.4 immediate = 1 1.5 1.6 for n in node.nodes: 1.7 - if not isinstance(n, compiler.ast.AssName): 1.8 + if not isinstance(n, (compiler.ast.AssName, compiler.ast.AssAttr)): 1.9 immediate = 0 1.10 break 1.11