![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: extend for loop syntax with if expr like listcomp&genexp ?
From: Ron Adam <rrr@ronadam.com>
Date: Tue Jul 12 2005 - 03:14:45 CEST
Bengt Richter wrote:
Is it new idea month? :)
That would seem to follow the pattern of combining sequential lines that
if pay<10 if hours>10 if stressed:
That would be the same as using ands.
And this gives us an if-try pattern with a shared else clause.
if trapped try:
Which would be the same as:
if trapped:
Interesting idea, but I think it might make reading other peoples code
Cheers,
|