New submission from Terry J. Reedy <tjre...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue43202> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com