Barry Warsaw wrote:
> Well here's another nutty idea. We actually have two ways to create
> literal tuples, right?
An even nuttier idea: don't use {} at all for sets,
use backquotes instead. No inconsistency for empty
sets would be required then.
set3 = `1, 2, 3`
set1 = `1`
set0 = ``
Slightly less nutty idea: use {} but introduce
a new reserved word 'phi' for constructing an
empty set.
set3 = {1, 2, 3}
set1 = {1}
set0 = phi
--
Greg
_______________________________________________
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