[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Torbjørn Wikestad
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 __

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Torbjørn Wikestad
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,

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: Please try your script in the vanilla Python interpreter. If it behaves correctly, you should report this issue to Spyder and/or IPython. -- nosy: +steven.daprano ___ Python tracker

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add the script without any dependencies to reproduce this? -- nosy: +xtreak ___ Python tracker ___ _

[issue38774] Statements in try block still executes after raised error

2019-11-12 Thread Torbjørn Wikestad
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 correc