From 892edbcf4be510aa2bf6022a1f2bd44087dfb50a Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Wed, 23 Oct 2024 15:13:48 +0100 Subject: [PATCH] Fix up a couple of comments --- Python/flowgraph.c | 1 + Python/specialize.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/flowgraph.c b/Python/flowgraph.c index 1dda73daeda940..11cea34a5ef6ad 100644 --- a/Python/flowgraph.c +++ b/Python/flowgraph.c @@ -2592,6 +2592,7 @@ _PyCfg_OptimizeCodeUnit(cfg_builder *g, PyObject *consts, PyObject *const_cache, RETURN_IF_ERROR(push_cold_blocks_to_end(g)); RETURN_IF_ERROR(resolve_line_numbers(g, firstlineno)); + // temporarily remove assert. See https://github.com/python/cpython/issues/125845 // assert(all_exits_have_lineno(g->g_entryblock)); return SUCCESS; } diff --git a/Python/specialize.c b/Python/specialize.c index 90d5817cf865e8..52f3040855939f 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -468,7 +468,7 @@ _PyCode_Quicken(PyCodeObject *code) } else if (opcode == LOAD_CONST) { /* We can't do this in the bytecode compiler as - * can intern strings and make them immortal. */ + * marhsalling can intern strings and make them immortal. */ oparg = (oparg << 8) | instructions[i].op.arg; PyObject *obj = PyTuple_GET_ITEM(code->co_consts, oparg); if (_Py_IsImmortal(obj)) {