Collections of non-arbitrary objects ?
bruno.desthuilliers at gmail.com
bruno.desthuilliers at gmail.com
Thu Jun 21 16:39:00 EDT 2007
On Jun 21, 8:19 pm, walterbyrd <walterb... at iname.com> wrote:
> Python seems to have a log of ways to do collections of arbitrary
> objects: lists, tuples, dictionaries.
And sets.
> But what if I want a collection
> of non-arbitrary objects?
Then only put the kind of objects you want in the collection.
> A list of records, or something like that
'Records' can be implemented as tuples, dicts or using a custom class.
More information about the Python-list
mailing list