new to python

Chris Patton chrispatton at
Sun Oct 10 07:34:01 CEST 2004

I need to make several user-defined objects for a program I'm making.
I know that one way is to use the exec statement (i.e. exec
'raw_input() = "cheese"'), but it can get very visually cluttered at
i.e. exec raw_input()+num+'={"I":'+b+','+am+':"just","fine":1}'

Does anyone know a different way I can do this? I need to do this to
define a dictionary, but a general method for all objects would be

Thanks for any help!

More information about the Python-list mailing list