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

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