So assignment expressions in generators…

ΤΖΩΤΖΙΟΥ tzotzioy at gmail.com
Fri Jul 13 17:58:33 EDT 2018


…will normally issue STORE_DEREF opcodes for the assignment?
This is what I understand from reading PEP-572, just wanted to ask whether I got it right.

Example of what I'm referring to:

def f():
    return ( (s := x*x) for x in range(5))



More information about the Python-list mailing list