Re: [Python-Dev] suggestion: except in list comprehension

2006-04-26 Thread tomer filiba
first, i posted it two days ago, so it's funny it got posted only now... the moderators are sleeping on the job :)anyway.> Note that of the continue cases you offer, all of them are merely simple > if conditionyes, i said that explicitly, did you *read* my mail?but i also said it's not always possi

Re: [Python-Dev] suggestion: except in list comprehension

2006-04-26 Thread Aahz
On Wed, Apr 26, 2006, Josiah Carlson wrote: > "tomer filiba" <[EMAIL PROTECTED]> wrote: >> >> first, i posted it two days ago, so it's funny it got posted only now... >> the moderators are sleeping on the job :) > > I don't believe python-dev has moderators...or at least my posts have > never bee

Re: [Python-Dev] suggestion: except in list comprehension

2006-04-26 Thread Josiah Carlson
"tomer filiba" <[EMAIL PROTECTED]> wrote: > first, i posted it two days ago, so it's funny it got posted only now... > the moderators are sleeping on the job :) I don't believe python-dev has moderators...or at least my posts have never been delayed like that. > > Note that of the continue case

Re: [Python-Dev] suggestion: except in list comprehension

2006-04-26 Thread Josiah Carlson
"tomer filiba" <[EMAIL PROTECTED]> wrote: > "[" for in [if ] [except > : ] "]" Note that of the continue cases you offer, all of them are merely simple if condition (though the file example could use a better test than os.path.isfile). [x for x in a if x.startswith("y") except AttributeEr

[Python-Dev] suggestion: except in list comprehension

2006-04-26 Thread tomer filiba
a friend of mine suggested this, and i thought i should share it with the mailing list.many times when you would want to use list/generator comprehensions, you have tofall back to the old for/append way, because of exceptions. so it may be a good idea to allow an exception handling mechanism in the