[Python-3000] sets in P3K?
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon May 1 08:51:51 CEST 2006
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
More information about the Python-3000
mailing list