[Python-Dev] Tricky way of of creating a generator via a comprehension expression (original) (raw)
Ethan Furman ethan at stoneleaf.us
Thu Nov 23 11:05:59 EST 2017
- Previous message (by thread): [Python-Dev] Tricky way of of creating a generator via a comprehension expression
- Next message (by thread): [Python-Dev] Tricky way of of creating a generator via a comprehension expression
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 11/23/2017 04:01 AM, Ivan Levkivskyi wrote:
Lets just forget about two SO questions and dozens people who up-voted it.
Questions/answers are routinely up-voted because they are well-written and/or informative, not just because somebody had a need for it or a use for the answer.
The SO question linked in the OP wasn't even about using the yield/yield-from in real code, just about timings and differences in byte code and whether or not they "worked" (no real-world use-case).
Hardly a clarion call for a fix.
--
Ethan
- Previous message (by thread): [Python-Dev] Tricky way of of creating a generator via a comprehension expression
- Next message (by thread): [Python-Dev] Tricky way of of creating a generator via a comprehension expression
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]