Python Object Question

Jason Joy kyroraz at usa.net
Sat Apr 28 16:39:56 EDT 2001


Hello,

I am having a bit of trouble with the following piece of code...

                result = objectChunk()
                masterkeys = output.keys()
                for key in masterkeys:
                        result.key = output[key]
                ## I might have to do something different above...
                data.append(result)

Where result.key is, of course, taken literally as result.key, not depending
on what the variable key is.  Does anyone know how I can make it use the
actual value of "key"?

Please respond via Email as well as posting to the list if possible.

Jason

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1




More information about the Python-list mailing list