Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
the compiler struct no longer needs the arena
  • Loading branch information
iritkatriel committed Sep 10, 2024
commit 4611b924b9415b3d7e4681fa61cce48d1c9349de
2 changes: 0 additions & 2 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ typedef struct _PyCompiler {
including names tuple */
struct compiler_unit *u; /* compiler state for current block */
PyObject *c_stack; /* Python list holding compiler_unit ptrs */
PyArena *c_arena; /* pointer to memory allocation arena */

bool c_save_nested_seqs; /* if true, construct recursive instruction sequences
* (including instructions for nested code objects)
Expand All @@ -112,7 +111,6 @@ compiler_setup(compiler *c, mod_ty mod, PyObject *filename,
}

c->c_filename = Py_NewRef(filename);
c->c_arena = arena;
if (!_PyFuture_FromAST(mod, filename, &c->c_future)) {
return ERROR;
}
Expand Down