Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

September 12 2013

22:23
22:23

Four Tricks for Comprehensions in Python - Tech.Pro

One of the finest features of the Python language are the list comprehension and it's lazy brother, the generator expression. The family has grown in Python 3 to include the equally useful dictionary and set comprehensions. They all sport a readable and intuitive syntax, but some patterns may be surprising for beginners. When used together with the itertools module, they provide for amazingly expressive shortcuts for all sorts of common problems.
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.

Don't be the product, buy the product!

Schweinderl