Re: empty set and empty dict for Python 3

2010-07-15 Thread Peter Otten
Yingjie Lan wrote: > Maybe somebody already suggested this: > > How about "{:}" for the empty dict, > so that "{}" can denote the empty set? http://mail.python.org/pipermail/python-3000/2007-April/006620.html -- http://mail.python.org/mailman/listinfo/python-list

Re: empty set and empty dict for Python 3

2010-07-15 Thread Tim Golden
On 15/07/2010 13:30, Yingjie Lan wrote: Hi there, Maybe somebody already suggested this: How about "{:}" for the empty dict, so that "{}" can denote the empty set? Well one thing is that {} has denoted the empty dict for many many releases of Python so a *lot* of code would break if you sudde

empty set and empty dict for Python 3

2010-07-15 Thread Yingjie Lan
Hi there, Maybe somebody already suggested this: How about "{:}" for the empty dict, so that "{}" can denote the empty set? Yingjie -- http://mail.python.org/mailman/listinfo/python-list