aboutsummaryrefslogtreecommitdiff
path: root/tests/basics/generator_name.py
AgeCommit message (Collapse)Author
2018-07-10py/objgenerator: Implement __name__ with normal fun attr accessor code.Damien George
With the recent change b488a4a8480533a6a3c9468c2f8bd359c94d4d02, a generating function now has the same layout in memory as a normal bytecode function, and so can reuse the latter's attribute accessor code to implement __name__.