bags? 2.5.x?

Wildemar Wildenburger lasses_weil at klapptsowieso.net
Thu Jan 17 16:28:11 EST 2008


Dan Stromberg wrote:
> The author of the bag class said that he was planning to submit bags for 
> inclusion in 2.5 - is there a particular reason why they didn't go in?
> 
I wouldn't know. Not enough convincing use cases, I guess. Fools ;)


> I keep finding a need for bags.  In the past, I've done this sort of 
> thing with dictionaries, but it's much nicer to have a bag class, and of 
> course it's better to have it in the standard library than to slurp it 
> into this, that and the other project.
> 
Then again, it is only one class. Also, if I may be so bold, why 
wouldn't a simple list fit your needs (other than performance, of course)?


/W



More information about the Python-list mailing list