mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merged revisions 82189 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r82189 | benjamin.peterson | 2010-06-23 19:12:40 -0500 (Wed, 23 Jun 2010) | 1 line prevent assignment to set literals ........
This commit is contained in:
parent
5e307de6e0
commit
1b1a1a4bce
1 changed files with 4 additions and 2 deletions
|
@ -478,10 +478,12 @@ SyntaxError: keyword argument repeated
|
|||
|
||||
>>> del ()
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
File "<doctest test.test_syntax[50]>", line 1
|
||||
SyntaxError: can't delete ()
|
||||
|
||||
>>> {1, 2, 3} = 42
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: can't assign to literal
|
||||
|
||||
"""
|
||||
|
||||
import re
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue