Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > empty set and empty dict for Python 3

Reply
Thread Tools

empty set and empty dict for Python 3

 
 
Yingjie Lan
Guest
Posts: n/a
 
      07-15-2010
Hi there,

Maybe somebody already suggested this:

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


Yingjie



 
Reply With Quote
 
 
 
 
Peter Otten
Guest
Posts: n/a
 
      07-15-2010
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/pyt...il/006620.html
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: dict.keys() and dict.values() are always the same order, is it? Cameron Simpson Python 6 04-21-2010 04:37 AM
dict.keys() and dict.values() are always the same order, is it? Menghan Zheng Python 1 04-20-2010 03:51 AM
dict.items() vs dict.iteritems and similar questions Drew Python 19 03-15-2007 09:23 PM
dict!ident as equivalent of dict["ident"] Alexander Kozlovsky Python 5 05-22-2006 08:06 AM
Re: dict->XML->dict? Or, passing small hashes through text? Skip Montanaro Python 0 08-15-2003 03:46 PM



Advertisments