prevent assignment to set literals

This commit is contained in:
Benjamin Peterson 2010-06-24 00:12:40 +00:00
parent 5c995c10d4
commit 947ce58a90
3 changed files with 9 additions and 0 deletions

View file

@ -468,6 +468,12 @@ 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):
...
File "<doctest test.test_syntax[50]>", line 1
SyntaxError: can't assign to literal
"""
import re