ros / xacro

Xacro is an XML macro language. With xacro, you can construct shorter and more readable XML files by using macros that expand to larger XML expressions.

Home Page:http://www.ros.org/wiki/xacro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python3 cannot handle hierarchical symbol tables

rhaschke opened this issue · comments

The following xacro snippet fails on python3 while it succeeds on python2:

<root version="1.0" xmlns:xacro="http://www.ros.org/wiki/xacro">
	<xacro:property name="xyz1" value="${[1,2,3]}"/>
	<xacro:property name="xyz" value="${[xyz1[i]*xyz1[i] for i in [0,1,2]]}"/>
	<a xyz="${xyz}"/>
</root>

I filed an issue on the python bug tracker: https://bugs.python.org/issue41878