get method

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Tue Dec 30 19:49:04 EST 2008


On Wed, 31 Dec 2008 10:29:14 +1000, James Mills wrote:

> On Wed, Dec 31, 2008 at 10:22 AM, John Machin <sjmachin at 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



More information about the Python-list mailing list