On Tue, 18 Apr 2006 07:07:27 -0500, Tim Chase <[EMAIL PROTECTED]> wrote: > >>> [horse for horse in horses if horse.pretty]
I'm familiar with this one as: all(pony for pony in ponies if pony.pretty). Never knew there was a version with "horse", not "pony". Jane Siberry does a nice rendition of the pony version. There's also: if brother_john.is_sleeping(): pass if brother_john.is_sleeping(): pass assert bells['morning'].is_ringing() assert bells['morning'].is_ringing() --amk -- http://mail.python.org/mailman/listinfo/python-list