News for hackers. Stuff that matters.
Re:Python List Comprehensions Explained Visually by th on Wednesday December 02, 2015 @07:32PM (#10666946)
I agree. I was using "List Comprehensions: Now In Color" as a working title but I thought that was too nonsensical. It was actually the colorized code and not the gifs in particular that made me think "visual".

Sorry for the misleading title!

Re:Python List Comprehensions Explained Visually by meric on Thursday December 03, 2015 @01:57AM (#10668187)
It's a good document. I know list comprehensions already but still I found it entertaining to read - I think it'll enlighten a lot of people on this topic.
Re:Python List Comprehensions Explained Visually by exDM69 on Thursday December 03, 2015 @04:36AM (#10668703)
This article needs some more complex examples, e.g. comprehensions with multiple "for" clauses and more complex filtering. Perhaps an example using zip or enumerate.

E.g.

    cartesian_product = [(a,b) for a in [1,2,3] for b in ['a','b','c']]
Could really be nice when explained in color.
Re:Python List Comprehensions Explained Visually by x0 on Wednesday December 02, 2015 @11:22PM (#10667730)
What's the font you're using in that gif? It looks good.
Re:Python List Comprehensions Explained Visually by th on Thursday December 03, 2015 @12:06AM (#10667865)
Re:Python List Comprehensions Explained Visually by x0 on Friday December 04, 2015 @12:35AM (#10674872)
Ah, cheers :)