Building lists

Ian Kelly ian.g.kelly at gmail.com
Mon Oct 20 23:34:40 CEST 2014


On Mon, Oct 20, 2014 at 3:25 PM, Seymore4Head
<Seymore4Head at hotmail.invalid> wrote:
> I think what I am going to have to have is a master list that keeps
> track of several things and I will need to change some of them so I
> know that rules out tuples.

It sounds to me like what you really want is a list of class
instances. Define a class to contain the properties that you want to
have for one item in the list. Then create a list to contain multiple
instances of that class.



More information about the Python-list mailing list