[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Basic DTML
webmaster at zope.org
webmaster at zope.org
Sun Jun 6 07:14:58 EDT 2004
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/DTML.stx#2-47
---------------
A Python expression is essentially any bit of code that *is not* a
Python *statement*. For example, the Python statement 'a = 1'
assigns "1" to the "a" variable. You cannot use this statement in
DTML expressions. Likewise, you cannot use the statement 'print
"x"' in DTML. It is not an expression. Essentially, an
expression must be a combination of values, variables, and Python
*operators*. To find out more about Python's expression syntax,
see the "Python Tutorial":http://www.python.org/doc/current/tut at
the Python.org web site. For more information specifically about
the differences between Python expressions and statements, see the
"Variables, expressions, and
statements"::http://www.ibiblio.org/obp/thinkCSpy/chap02.htm
chapter of *How To Think Like a Computer Scientist Using Python*.
% Anonymous User - June 6, 2004 7:14 am:
Broken link: Variables, expressions, and statements
More information about the ZDP
mailing list