BackTalk to Document The Zope Book (2.6 Edition)/Basic DTML
[email protected] Sun, 06 Jun 2004 07:14:58 -0400
| Newsgroups | gmane.comp.web.zope.zdp |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
ZDP maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zdp