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

2018-03-13 Thread Mark Shannon
Mark Shannon added the comment: So you did. Sorry for the duplication -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2018-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I already opened issue32949 for this. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Simplify "with"-related opcodes ___ Python tracker

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

2018-03-13 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +5871 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

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

2018-03-13 Thread Mark Shannon
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 d