[Python-3000] set literals

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jul 10 02:01:04 CEST 2006


Andrew Koenig wrote:

> Or you could adopt the approach used by SETL: A dict is equivalent to a set
> of 2-tuples.
> 
> No, I'm not serious; I think it would be too big a change.  But you have to
> admit it's a cool idea :-)

One fairly disastrous consequence would be that the *values*
would have to be hashable as well as the keys...

--
Greg


More information about the Python-3000 mailing list