mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
give a better error message when deleting ()
This commit is contained in:
parent
5d1ff94b9e
commit
52c4bec76b
2 changed files with 13 additions and 4 deletions
|
@ -462,6 +462,12 @@ Traceback (most recent call last):
|
|||
File "<doctest test.test_syntax[49]>", line 1
|
||||
SyntaxError: keyword argument repeated
|
||||
|
||||
>>> del ()
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
File "<doctest test.test_syntax[50]>", line 1
|
||||
SyntaxError: can't delete ()
|
||||
|
||||
"""
|
||||
|
||||
import re
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue