mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
gh-95756: Lazily created cached co_* attrs (GH-97791)
This commit is contained in:
parent
f871e9a7bb
commit
b399115ef1
5 changed files with 82 additions and 14 deletions
|
|
@ -276,7 +276,7 @@ def generate_code(self, name: str, code: types.CodeType) -> str:
|
|||
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(f"._co_cached = NULL,")
|
||||
self.write("._co_linearray = NULL,")
|
||||
self.write(f".co_code_adaptive = {co_code_adaptive},")
|
||||
for i, op in enumerate(code.co_code[::2]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue