-
- Downloads
py/objgenerator: Implement __name__ with normal fun attr accessor code.
With the recent change b488a4a8, 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__.
Showing
- py/objfun.c 2 additions, 2 deletionspy/objfun.c
- py/objfun.h 2 additions, 0 deletionspy/objfun.h
- py/objgenerator.c 3 additions, 0 deletionspy/objgenerator.c
- tests/basics/generator_name.py 16 additions, 0 deletionstests/basics/generator_name.py
- tests/run-tests 1 addition, 1 deletiontests/run-tests
tests/basics/generator_name.py
0 → 100644
Please register or sign in to comment