use var to form name of object
gel
geli at tasmail.com
Wed Jul 5 00:49:56 EDT 2006
gel wrote:
> Hi
> I would like to pass a variable in and use it as part of a name of an
> object, something like below, where I pass the variable software into
> the function and use it as part of the name of the object so that I can
> append to it using the other vairables. Any suggestions?
>
>
> def a_d(self,software,mac,time,extra):
> global d_software
> d_software.software.append([mac,time,extra])
I sorted it out
More information about the Python-list
mailing list