New submission from Pablo Galindo Salgado <[email protected]>:
Given this script:
try:
x = 34
a = 1
instead of printing:
File "/home/pablogsal/github/python/master/lel.py", line 4
a = 1
^
SyntaxError: invalid syntax
we should print:
File "/home/pablogsal/github/python/master/lel.py", line 4
a = 1
^
SyntaxError: expected 'except' or 'finally' block
----------
messages: 395053
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Improve syntax error for try block without finally or except block
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44305>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com