Collections of non-arbitrary objects ?

bruno.desthuilliers at bruno.desthuilliers at
Thu Jun 21 22:39:00 CEST 2007

On Jun 21, 8:19 pm, walterbyrd <walterb... at> 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