nested data structures in classes
Terry Reedy
tjreedy at udel.edu
Fri Aug 29 16:51:07 EDT 2003
"Joel" <jfmoxley at mit.edu> wrote in message
news:e31c4866.0308291220.776a92a5 at posting.google.com...
> Does anyone have any thoughts on this?
> > My Python use involves organizing nested list information. In a
> > simplified example, you could imagine a list of reactants and
products in
> > a chemical reaction. Thus,
I would think about keeping reaction data together rather than in
separate lists. Perhaps you need to add a reaction attribute dict or
define a reaction class. Perhaps your need a reactant class. But I
would not say more without knowing much more about your specific
project and its goals.
Terry J. Reedy
More information about the Python-list
mailing list