﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
594	UndefinedError if output from template function is wrapped in tuple	fschwarz	cmlenz	"This template causes an exception: ""{{{UndefinedError: ""name"" not defined}}}""

{{{
#!xml
<doc xmlns:py=""http://genshi.edgewall.org/"">
   <py:def function=""foo(name)"">__${name}__</py:def>
   ${tuple(foo('bar'))}
</doc>
}}}

Once the 'tuple()' is removed everything works as expected. I found the error message very confusing as undefined variables don't have anything to do with return values of a function.
"	defect	new	major	0.9	General	devel			
