[Zope] Re: DTML-tree Custom sort

J Cameron Cooper zope-l at jcameroncooper.com
Wed Oct 5 17:01:09 EDT 2005


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


More information about the Zope mailing list