From: Yingjie Lan on
Hi there,

Maybe somebody already suggested this:

How about "{:}" for the empty dict,
so that "{}" can denote the empty set?


Yingjie



From: Tim Golden on
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 suddenly switched...

TJG
From: Peter Otten on
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