[Python-3000] Empty set and empty dictionary

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 17 02:36:01 CEST 2007


Eoghan Murray wrote:
> how about
> s[1, 2, 3, 4]
> for a set?

Already meaningful syntax. Try this:

   d = {}
   d[1, 2, 3, 4] = 'spam'
   print d

--
Greg


More information about the Python-3000 mailing list