# HG changeset patch # User paulb@jeremy # Date 1152989030 -7200 # Node ID c227a822ddc7355e363c9b3085a08c4e5af37eb8 # Parent f610d9fa8dab472581ddcbedbd9616e39d73edba Added annotation notes. diff -r f610d9fa8dab -r c227a822ddc7 simplified.py --- a/simplified.py Sat Jul 15 20:40:32 2006 +0200 +++ b/simplified.py Sat Jul 15 20:43:50 2006 +0200 @@ -27,10 +27,28 @@ A result node with common attributes: original The original node from which this node was created. + name Any name involved (variable or attribute). expr Any contributing expression. - name Any name involved (variable or attribute). - code Any code grouped by this node. + lvalue Any target expression. + test Any test expression in a conditional instruction. ref Any reference to (for example) subprograms. + + Invocation and subprogram attributes: + + args Any collection of argument nodes. + params Any collection of parameter nodes and defaults. + + Statement-grouping attributes: + + body Any conditional code depending on the success of a test. + else_ Any conditional code depending on the failure of a test. + finally_ Any code which will be executed regardless. + code Any unconditional code. + + Table-style attributes: + + tests Any collection of tests and accompanying code. + handlers Any collection of tests applicable in exception handling. """ def __init__(self, original=None, **kw):