gh-93382: Sync up co_code changes with 3.11 (GH-94227)

Sync up co_code changes with 3.11 commit 852b4d4bcd.
This commit is contained in:
Ken Jin 2022-06-25 01:55:18 +08:00 committed by GitHub
parent a91ffcf3fa
commit 50a5ab2c0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -274,6 +274,7 @@ class Printer:
self.write(f".co_name = {co_name},")
self.write(f".co_qualname = {co_qualname},")
self.write(f".co_linetable = {co_linetable},")
self.write(f"._co_code = NULL,")
self.write("._co_linearray = NULL,")
self.write(f".co_code_adaptive = {co_code_adaptive},")
for i, op in enumerate(code.co_code[::2]):