On Wed, 31 Dec 2008 10:29:14 +1000, James Mills wrote: > On Wed, Dec 31, 2008 at 10:22 AM, John Machin <sjmac...@lexicon.net> > wrote: (snip) > >> The "crawl through the shrubbery looking for evidence" approach >> stumbles on the actual code: > > Yes I found his implementation soon after :) Not bad actually... I > wonder why bag() isn't shipped with the std lib - perhaps in teh set > module ?
What set module? >>> import set Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named set Adding a multi-set or bag class to the collections module would be a good idea though. Perhaps you should put in a feature request? -- Steven -- http://mail.python.org/mailman/listinfo/python-list