[issue33072] The interpreter bytecodes for with statements are overly complex.

Mark Shannon report at bugs.python.org
Tue Mar 13 15:59:22 EDT 2018


New submission from Mark Shannon <mark at hotpy.org>:

The bytecodes WITH_CLEANUP_START and WITH_CLEANUP_FINISH are complex and implement entirely different behavior depending on what is on the stack.

This is unnecessary as the same semantics can be implemented with much simpler bytecodes and using the compiler do much of the work now done at runtime.

----------
components: Interpreter Core
messages: 313771
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: The interpreter bytecodes for with statements are overly complex.
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33072>
_______________________________________


More information about the Python-bugs-list mailing list