New submission from Mark Shannon <>:

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 <>
Python-bugs-list mailing list

Reply via email to