Collections of non-arbitrary objects ?
bignose+hates-spam at benfinney.id.au
Fri Jun 22 01:38:52 CEST 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 |
More information about the Python-list