129 |
129 |
130 <p> |
130 <p> |
131 Function to build a string from an ast.BinOp chain. |
131 Function to build a string from an ast.BinOp chain. |
132 </p> |
132 </p> |
133 <p> |
133 <p> |
134 This will build a string from a series of ast.Str/ast.Constant nodes |
134 This will build a string from a series of ast.Constant nodes |
135 wrapped in ast.BinOp nodes. Something like "a" + "b" + "c" or "a %s" % val |
135 wrapped in ast.BinOp nodes. Something like "a" + "b" + "c" or "a %s" % val |
136 etc. The provided node can be any participant in the BinOp chain. |
136 etc. The provided node can be any participant in the BinOp chain. |
137 </p> |
137 </p> |
138 <dl> |
138 <dl> |
139 |
139 |
140 <dt><i>node</i> (ast.BinOp or ast.Str/ast.Constant)</dt> |
140 <dt><i>node</i> (ast.BinOp or ast.Constant)</dt> |
141 <dd> |
141 <dd> |
142 node to be processed |
142 node to be processed |
143 </dd> |
143 </dd> |
144 <dt><i>stop</i> (ast.BinOp or ast.Str/ast.Constant)</dt> |
144 <dt><i>stop</i> (ast.BinOp or ast.Constant)</dt> |
145 <dd> |
145 <dd> |
146 base node to stop at |
146 base node to stop at |
147 </dd> |
147 </dd> |
148 </dl> |
148 </dl> |
149 <dl> |
149 <dl> |