[New-bugs-announce] [issue43202] Cleanup codeop._maybe_compile

Terry J. Reedy report at bugs.python.org
Thu Feb 11 16:06:56 EST 2021

New submission from Terry J. Reedy <tjreedy at udel.edu>:

Following-up on discussion in #43163 and PR-24483, this issue is limited to changes that are expected to not affect the return value.  Therefore, do not backport unless and until needed as part of a bugfix.

First is moving the code return to immediately after it is successfully created.  Everything done after is ignored and useless.  This move makes the function return sooner and renders initialization of 'code' unnecessary.

assignee: terry.reedy
components: Library (Lib)
messages: 386836
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Cleanup codeop._maybe_compile
type: enhancement
versions: Python 3.10

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list