Right now these are custom parsed since they are not the same as
tuple literals and generally serve a different purpose. They are
tuples which contain variable identifiers and are generally used
for assignment.
return nodes.Template(parse(ast), lineno=1)\r
\r
def parse_variable(ast, variable_context='load'):\r
+ if 'tuple' in ast:\r
+ return parse_variable_tuple(ast, variable_context)\r
+\r
name = ast['variable']\r
\r
if 'literal_type' in name:\r
dynamic_kwargs,\r
lineno=lineno_from_parseinfo(ast['parseinfo'])\r
)\r
+\r
+def parse_variable_tuple(ast, variable_context):\r
+ identifiers = []\r
+\r
+ for name in ast['tuple']:\r
+ identifiers.append(nodes.Name(name, variable_context))\r
+\r
+ return nodes.Tuple(\r
+ identifiers,\r
+ variable_context,\r
+ lineno=lineno_from_parseinfo(ast['parseinfo'])\r
+ )\r