Tuesday, July 16, 2013

Python List Comprehension!

This:

while not all([x.condition for x in obj_array]):
    Do something


...is so powerful!

That is all.

No comments:

Post a Comment