empty set and empty dict for Python 3

Tim Golden mail at timgolden.me.uk
Thu Jul 15 08:44:18 EDT 2010


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



More information about the Python-list mailing list