naming objects from string

Fredrik Lundh fredrik at
Thu Sep 21 10:06:52 CEST 2006

manstey wrote:

> so they might provide a list of names, like 'bob','john','pete', with 3
> structures per name, such as 'apple','orange','red' and I need 9 tuples
> in my code to store their data:
> bob_apple=()
> bob_orange=()
> ..
> pete_red=()
> I then populate the 9 tuples with data they provide in a separate file,
> and the filled tuples are then validated against the metadata to make
> sure they are isomorphic.

if you want a dictionary, use a dictionary.


More information about the Python-list mailing list