[issue38774] Statements in try block still executes after raised error
New submission from Torbjørn Wikestad : 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@python components: Documentation, Interpreter Core, Windows messages: 356429 nosy: Torbjørn Wikestad, docs@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 <https://bugs.python.org/issue38774> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38774] Statements in try block still executes after raised error
Torbjørn Wikestad added the comment: The script has been tried and found to work as intended in the Idle IDE, which runs on a standard win32 python shell. So the error is linked only with IPython or Spyder. -- Added file: https://bugs.python.org/file48711/2019-11-12_try-clause,numpy,random,copy,time,ipython,spyder,python36.py ___ Python tracker <https://bugs.python.org/issue38774> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38774] Statements in try block still executes after raised error
Torbjørn Wikestad added the comment: I could not reproduce the error when I open the script in Spyder anew. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue38774> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com