builtin set literal

Steven Bethard steven.bethard at gmail.com
Fri Feb 16 12:43:08 EST 2007


Schüle Daniel wrote:
>> {:} for empty dict and {} for empty set don't look too much atrocious
>> to me.
> 
> this looks consistent to me

Yes, a lot of people liked this approach, but it was rejected due to 
gratuitous breakage. While Python 3.0 is not afraid to break backwards 
compatibility, it tries to do so only when there's a very substantial 
advantage. I guess enough people felt that having a shortcut for set() 
was less important than keeping the current spelling of dict() the same.

STeVe



More information about the Python-list mailing list