beginner, idiomatic python

Alex Martelli aleax at
Mon Aug 27 06:07:26 CEST 2007

bambam <david at asdf.asdf> wrote:
> Bags don't seem to be built in to my copy of Python, and

A "bag" is a collections.defaultdict(int) [[you do have to import
collections -- it's in the standard library, NOT built-in]].


More information about the Python-list mailing list