by philipbjorge on 3/16/13, 3:06 AM with 46 comments
by rakha on 3/16/13, 6:18 AM
I'm just nitpicking but I don't think this is a good justification - If the @ symbol looks like the empty set symbol, then {@} is the set containing the empty set
by jrockway on 3/16/13, 8:11 AM
Adding a set literal was a slippery slope anyway. Where's my frozenset literal? Where's my namedtuple literal?
(I also don't particularly like the {} syntax for dicts, because there is {'too_much': 'quoting'} which I find rather ugly. I much prefer dict(too_much='quoting') or, even better, Perl's solution: { too_much => 'quoting' }.)
by raymondh on 3/16/13, 5:36 AM
Really, you should trust the core developers on this one. Empty set literals are missing from Python for a reason.
by polemic on 3/16/13, 7:30 AM
dict() = {}
set() = <>
tuple() = ()
list() = []
(btw, does anyone actually use `<>` as `!=`?)by hwiechers on 3/16/13, 7:05 AM
by sciencerobot on 3/16/13, 3:52 AM
set = <> is still available.
by codesuela on 3/16/13, 3:20 PM
by vbtemp on 3/16/13, 1:32 PM
Should be, it's not always hard to make interesting changes to very well-designed and well-architected projects
by johnsoft on 3/16/13, 4:33 AM
by tantalor on 3/16/13, 5:19 AM
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
by SilasX on 3/16/13, 4:11 AM