![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: "For" loop and list comprehension similarity
From: Ben Finney <bignose+hates-spam@benfinney.id.au>
Date: Mon Mar 27 2006 - 00:40:56 CEST
s.lipnevich@gmail.com writes:
> On more than one occasion, I found myself wanting to use a "conditional
Why not combine the two:
for i in [j for j in c if <test>]:
-- \ "I got food poisoning today. I don't know when I'll use it." | `\ -- Steven Wright | _o__) | Ben FinneyReceived on Sun Apr 30 21:15:34 2006 |