[New-bugs-announce] [issue42167] Documentation for SETUP_WITH opcode is wrong

Patrick Reader report at bugs.python.org
Tue Oct 27 05:54:48 EDT 2020


New submission from Patrick Reader <pxeger at protonmail.com>:

bpo-33387 introduced two new opcodes, `RERAISE` and `WITH_EXCEPT_START` (previously called `WITH_EXCEPT_FINISH`), replacing the previous `WITH_CLEANUP_START`, `WITH_CLEANUP_FINISH`,
`BEGIN_FINALLY`, `END_FINALLY`, `CALL_FINALLY` and `POP_FINALLY`.

The [documentation](https://docs.python.org/3.9/library/dis.html#opcode-SETUP_WITH) for it references the since removed `WITH_CLEANUP_START`, which is definitely wrong. I don't know enough to be able to fix it though, sorry, so I've added the core team.

----------
assignee: docs at python
components: Documentation, Interpreter Core
messages: 379749
nosy: docs at python, pxeger
priority: normal
severity: normal
status: open
title: Documentation for SETUP_WITH opcode is wrong
versions: Python 3.10, Python 3.9

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


More information about the New-bugs-announce mailing list