[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML

webmaster@zope.org webmaster@zope.org
Tue, 24 Sep 2002 16:21:03 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx#2-36

---------------

    Remember, everything inside a Python expression attribute must be
    a *valid Python expression*.  In DTML, *sequence-item* is the name
    of a variable, but in Python this means "The object *sequence*
    minus the object *item*".  This is not what you want.

      % Anonymous User - Sep. 24, 2002 4:20 pm:
       To make a long explanation short:
       Python names have the familiar structure excluding special characters, 
       ("start with letter, follow with letter or digit where '_' counts as letter")
       while DTML names may contain any character, including the hyphen which in python is the minus-operator.