Skip to content
Prev Previous commit
Next Next commit
Fix up a couple of comments
  • Loading branch information
markshannon committed Oct 23, 2024
commit 892edbcf4be510aa2bf6022a1f2bd44087dfb50a
1 change: 1 addition & 0 deletions Python/flowgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Comment thread
markshannon marked this conversation as resolved.
Outdated
oparg = (oparg << 8) | instructions[i].op.arg;
PyObject *obj = PyTuple_GET_ITEM(code->co_consts, oparg);
if (_Py_IsImmortal(obj)) {
Expand Down