News for hackers. Stuff that matters.
Re:Python List Comprehensions Explained Visually by Grue3 on Thursday December 03, 2015 @07:15AM (#10669180)
>Same thing passed to list and set constructors (which you'd never do because we have the special comprehension syntax for those

I do this all the time (for set) because it works even in python 2.6. Also dict((key, value) for foo in bar). In fact, I think it was a bad idea to add special comprehension syntax for sets and dicts.

There are no comments on this comment yet.