summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-24 00:12:40 +0000
committerBenjamin Peterson <benjamin@python.org>2010-06-24 00:12:40 +0000
commita5435708c517c64f1d787ca51d19918bfb5ca33e (patch)
tree1cc123a12e235c335825a91875c3eba899519c38 /Python
parent3f2511022c0c822c74e21f9dad2015ceff968d1c (diff)
downloadcpython-a5435708c517c64f1d787ca51d19918bfb5ca33e.tar.gz
prevent assignment to set literals
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 41c0d28e1b..f8c83d934c 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -440,6 +440,7 @@ set_context(struct compiling *c, expr_ty e, expr_context_ty ctx, const node *n)
expr_name = "dict comprehension";
break;
case Dict_kind:
+ case Set_kind:
case Num_kind:
case Str_kind:
expr_name = "literal";