Collections of non-arbitrary objects ?

Ben Finney bignose+hates-spam at benfinney.id.au
Thu Jun 21 19:38:52 EDT 2007


walterbyrd <walterbyrd at iname.com> writes:

> Python seems to have a log of ways to do collections of arbitrary
> objects: lists, tuples, dictionaries. But what if I want a
> collection of non-arbitrary objects? A list of records, or something
> like that?

Then collect them in a non-arbitrary way.

That's a flippant response, but I don't understand the question. What
are you asking for that you don't already have? A list can contain a
sequence of objects of the same type already. What are you expecting
that a list does not provide?

-- 
 \         "Faith may be defined briefly as an illogical belief in the |
  `\               occurrence of the improbable."  -- Henry L. Mencken |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list