Heterogeneous lists
Gordon Airporte
JHoover at fbi.gov
Tue Aug 7 14:53:01 EDT 2007
This is one of those nice, permissive Python features but I was
wondering how often people actually use lists holding several different
types of objects.
It looks like whenever I need to group different objects I create a
class, if only so I can use more meaningful names than '[2]' for the items.
How often do these show up in your code?
Is this simply the upshot of the underlying arrays holding only object
references of some sort?
More information about the Python-list
mailing list