News for hackers. Stuff that matters.
Re:Python List Comprehensions Explained Visually by iamsohungry on Wednesday December 02, 2015 @08:54PM (#10667231)
Are Python List Comprehensions really hard for people? I feel like my memory of learning them was I saw one in production code I was modifying, intuited what it did, pulled open a REPL and played with it for a bit, and then moved on.
Re:Python List Comprehensions Explained Visually by brbsix on Thursday December 03, 2015 @01:04AM (#10668033)
I agree. It really surprised me to see this getting so much traffic. I sometimes get hung up with nested comprehensions when I haven't been using them in a while, but other than that, they are quite mundane.