[Zpt] What is the behavior here?

Guido van Rossum guido@digicool.com
Fri, 02 Mar 2001 09:30:00 -0500


> <span tal:define="text str:Anything, structure /here/something">
>   <p tal:insert="text" />
>   <p tal:replace="structure" />
> </span>
> 
> Is there a problem with our keyword modifiers "global", "text", and
> "structure" clashing with variables and thus creating ambiguity?

I don't find it a problem -- you can always use the keyword explicitly.

I see no problem with "global" -- this is only used when *defining* a
variable.  There's now no explicit way to reference a global that's
hidden by a local -- that's fine with me!  (The template designer did
this to itself.)

--Guido van Rossum (home page: http://www.python.org/~guido/)