empty classes as c structs?

Alex Martelli aleaxit at yahoo.com
Sun Feb 6 18:06:07 EST 2005


Brian van den Broek <bvande at po-box.mcgill.ca> wrote:
   ...
> (I'm just a hobbyist, so if this suggestion clashes with some well 
> established use of 'Bag' in CS terminology, well, never mind.)

Yep: a Bag is a more common and neater name for a "multiset" -- a
set-like container which holds each item ``a certain number of times''
(you can alternatively see it as a mapping from items to counts of
number of times the item is held).


Alex



More information about the Python-list mailing list