[Zope-dev] Re: TALES idea: tuple unpacking

Paul Winkler pw_lists@slinkp.com
Wed, 23 Jul 2003 13:38:53 -0400


On Wed, Jul 23, 2003 at 11:07:20AM -0500, Evan Simpson wrote:
> ...  This would allow 
> "options/a_mapping/key:items/index:0" rather than 
> "python:options['a_mapping']['items'][0]".

Why is that an improvement? surely it's not saving 3 characters
that makes the new syntax worthwhile...

> "options/a_mapping/by:key/items/by:index/0".

do you find this easier to read or write than the python version?

I guess I don't understand the goal. Are we trying to make it
so that zpt authors don't have to know any python?
I really think that's a mistake.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's RED ORIGAMI SNOWMAN!
(random hero from isometric.spaceninja.com)