commit | 947ce58a9018d23cb1e5e8de550f2ba0e542248e | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Jun 24 00:12:40 2010 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Jun 24 00:12:40 2010 +0000 |
tree | 3832acdc851f879c0d8a3705d3500cb4205e5bf6 | |
parent | 5c995c10d45a7915b5ea0bb02d114b2579eef04e [diff] [blame] |
prevent assignment to set literals
diff --git a/Python/ast.c b/Python/ast.c index 41c0d28..f8c83d9 100644 --- a/Python/ast.c +++ b/Python/ast.c
@@ -440,6 +440,7 @@ expr_name = "dict comprehension"; break; case Dict_kind: + case Set_kind: case Num_kind: case Str_kind: expr_name = "literal";