]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40941: Unify implicit and explicit state in the frame and generator objects into...
authorMark Shannon <mark@hotpy.org>
Fri, 17 Jul 2020 10:44:23 +0000 (11:44 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 10:44:23 +0000 (11:44 +0100)
commitcb9879b948a19c9434316f8ab6aba9c4601a8173
tree2456a68d16bda26efc7f4f00f6fe5b4f4889f42c
parent8e836bb21ce73f0794fd769db5883c29680dfe47
bpo-40941: Unify implicit and explicit state in the frame and generator objects into a single value. (GH-20803)

* Merge gen and frame state variables into one.

* Replace stack pointer with depth in PyFrameObject. Makes code easier to read and saves a word of memory.
Include/cpython/frameobject.h
Include/genobject.h
Lib/test/test_generators.py
Lib/test/test_sys.py
Lib/test/test_yield_from.py
Modules/_xxsubinterpretersmodule.c
Objects/frameobject.c
Objects/genobject.c
Python/ceval.c