[Zope-dev] Re: TALES idea: tuple unpacking
Fred L. Drake, Jr.
fred@zope.com
Wed, 23 Jul 2003 13:16:14 -0400
Philipp von Weitershausen writes:
> Why wouldn't that be possible with "a_list/index:?i"?
I think making it "a_list/index:i" is fine. The adapter for "index:"
will get the index as a string and convert that to an integer and
return a_list[i]. The index: adapter simply represents a namespace in
which all names look like integers.
-Fred
--
Fred L. Drake, Jr. <fred at zope.com>
PythonLabs at Zope Corporation