Raymond Hettinger wrote:
> P.S. A small side-benefit is it may put an end for interminable requests for
> a {:} or {/} notation for empty sets. There's not much need for a literal
> for a empty frozenset (use "not s" instead).
How about also removing the {} as an empty dictionary? Then both
dictionary and set literals will require at least one item to be valid. No
confusion, and {} is not allowed because it's ambiguous (to users) as to
weather it's a set or dictionary.
Would set({a, b, c}) be valid?
If so, should the repr for a set be set({a, b, c}) instead of
set([a, b, c])?
Ron
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com