[New-bugs-announce] [issue38774] Statements in try block still executes after raised error

Torbjørn Wikestad report at bugs.python.org
Tue Nov 12 04:48:10 EST 2019


New submission from Torbjørn Wikestad <torbjorn.wikestad at gmail.com>:

In a script that runs in a IPython 3.6 console (Spyder IDE, part of a WinPython bundle), a counter increment statement is executed after a function call which raises an ValueError exception in try ... except structure. This does not seem to be the correct interpreter behavior, from the resources that I found, as the expected behaviour is said for execution to jump directly to the except block.

----------
assignee: docs at python
components: Documentation, Interpreter Core, Windows
messages: 356429
nosy: Torbjørn Wikestad, docs at python, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Statements in try block still executes after raised error
type: behavior
versions: Python 3.6

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


More information about the New-bugs-announce mailing list