mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
map cells to arg slots at code creation time (closes #12399)
This removes nested loops in PyEval_EvalCodeEx.
This commit is contained in:
parent
935fa016f4
commit
9003760991
4 changed files with 89 additions and 79 deletions
|
@ -665,7 +665,7 @@ class SizeofTest(unittest.TestCase):
|
|||
return inner
|
||||
check(get_cell().__closure__[0], size(h + 'P'))
|
||||
# code
|
||||
check(get_cell().__code__, size(h + '5i8Pi3P'))
|
||||
check(get_cell().__code__, size(h + '5i9Pi3P'))
|
||||
# complex
|
||||
check(complex(0,1), size(h + '2d'))
|
||||
# method_descriptor (descriptor object)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue