mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-42990: Introduce 'frame constructor' struct to simplify API for PyEval_CodeEval and friends (GH-24298)
* Introduce 'frame constructor' to simplify API for frame creation * Embed struct using a macro to conform to PEP 7
This commit is contained in:
parent
23a567c11c
commit
d6c33fbd34
8 changed files with 144 additions and 156 deletions
|
@ -1280,7 +1280,7 @@ class SizeofTest(unittest.TestCase):
|
|||
check(x, vsize('4Pi2c4P3ic' + CO_MAXBLOCKS*'3i' + 'P' + extras*'P'))
|
||||
# function
|
||||
def func(): pass
|
||||
check(func, size('13P'))
|
||||
check(func, size('14P'))
|
||||
class c():
|
||||
@staticmethod
|
||||
def foo():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue