News for hackers. Stuff that matters.
Re:What's Coming in Python 3.8 by Izkata on Thursday July 18, 2019 @11:21AM (#20470734)
> this code doesn't contain any list comprehensions, for example

It does contain a generator expression though, which is the same as a list comprehension in general structure, but slightly more confusing because it doesn't have the relationship to lists that square brackets in a list comprehension would have given it.

Re:What's Coming in Python 3.8 by kragen on Thursday July 18, 2019 @11:26AM (#20470811)
Yes, it shares the structure of a list comprehension, but has different semantics. In this case a listcomp would have worked just as well.

My point, though, was that not being able to tell the difference was a key "tell" that the comment author was not very familiar with Python — in some contexts, that would tend to undermine credibility in their comment (and then it would be rude to point it out), but in this context, it probably makes their opinion more objective.

Re:What's Coming in Python 3.8 by elcritch on Thursday July 18, 2019 @12:56PM (#20471711)
Good point, though it's less my familiarity with Python and more that I tend to simplify and call generator expressions as list comprehensions unless the laziness is important to call out (meta laziness there? ;) ). Mainly since L.C.'s were first and describing the differences is tedious.