semicolon at end of python's statements

Fábio Santos fabiosantosart at gmail.com
Thu Aug 29 06:02:04 EDT 2013


On 29 Aug 2013 10:54, "Chris Angelico" <rosuav at gmail.com> wrote:
>
> foreach (some_array, mixed val) if (some_condition)
> {
>     //do something with val
> }
>

I hope that you don't mind that I have started to use this in JavaScript
back at work. Its foreach loop requires you to do a filter all the time.

It is a shame that this is not possible in python. for..if exists in
comprehensions and not in regular loops but that would be nice sometimes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130829/525231d0/attachment.html>


More information about the Python-list mailing list