[Python-ideas] question - 'bag' type
C. Titus Brown
ctb at msu.edu
Thu Apr 15 07:02:37 CEST 2010
Hi all,
this seems like the right forum to ask -- is there a reason why Python
doesn't have a 'bag' builtin type, e.g.
b = bag(foo=bar, baz=bif)
assert b.foo == bar
assert b.bz == bif
?
It's easy to write and there's a great discussion over at the cookbook:
http://code.activestate.com/recipes/259174-bag-collection-class/
Inquiring minds want to know!
thanks,
--titus
--
C. Titus Brown, ctb at msu.edu
More information about the Python-ideas
mailing list