Chris Beaven wrote:
It's really more a cool way to do lists than if statements :)
It's technically "list comprehension". Sort of a one-line list transform
tool.
I recommend reading through some of Dive Into Python
(http://diveintopython.org/) for lots more cool hands-on tips on Python
programming. Chapter 3 for a good overview of the uses of Python's
different data types.
Good advice.
--jcc
--
"Building Websites with Plone"
http://plonebook.packtpub.com/
Enfold Systems, LLC
http://www.enfoldsystems.com
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )