]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43693: Clean up the PyCodeObject fields. (GH-26364)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 26 May 2021 19:15:40 +0000 (13:15 -0600)
committerGitHub <noreply@github.com>
Wed, 26 May 2021 19:15:40 +0000 (20:15 +0100)
commit6cc800d3634fdd002b986c3ffe6a3d5540f311a0
treec6e67a6f76549102011931f2ee929b455ab40918
parente6c815d2e34be5fdf6dbe773f0781691746d2289
bpo-43693: Clean up the PyCodeObject fields. (GH-26364)

* Move up the comment about fields using in hashing/comparision.

* Group the fields more clearly.

* Add co_ncellvars and co_nfreevars.

* Raise ValueError if nlocals != len(varnames), rather than aborting.
Include/cpython/code.h
Lib/test/test_code.py
Objects/codeobject.c
Objects/frameobject.c
Objects/funcobject.c
Objects/typeobject.c
Python/ceval.c