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:
Benjamin Peterson 2010-06-24 00:17:03 +00:00
parent 5e307de6e0
commit 1b1a1a4bce

View File

@ -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