Re: use var to form name of object

2006-07-17 Thread gel
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, gel wrote: > > > Yeah I am still getting my head around things... not exactly sure what > > you where saying about the globals, but this works > > > > > > global k > > k = 5 > > class foo: > > > > def wow(self, n): > >

Re: use var to form name of object

2006-07-06 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, gel wrote: > Yeah I am still getting my head around things... not exactly sure what > you where saying about the globals, but this works > > > global k > k = 5 > class foo: > > def wow(self, n): > global k > k += n >

Re: use var to form name of object

2006-07-05 Thread gel
Simon Forman wrote: > gel wrote: > > > > > class testclass: > > import wmi > > import time > > global d_software > > global l_notepad > > global d_licence_numbers > > d_licence_numbers = {"notepad.exe":1, "Adobe":1} > > l_notepad =[] > > d_software = {"notepad.exe

Re: use var to form name of object

2006-07-05 Thread Simon Forman
gel wrote: > class testclass: > import wmi > import time > global d_software > global l_notepad > global d_licence_numbers > d_licence_numbers = {"notepad.exe":1, "Adobe":1} > l_notepad =[] > d_software = {"notepad.exe":[[],[]], "Adobe":[[],[]]} > Wow! For a se

Re: use var to form name of object

2006-07-05 Thread gel
gel wrote: > Bruno Desthuilliers wrote: > > > gel wrote: > > > 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

Re: use var to form name of object

2006-07-05 Thread gel
Bruno Desthuilliers wrote: > gel wrote: > > 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 > >>

Re: use var to form name of object

2006-07-05 Thread Bruno Desthuilliers
gel wrote: > 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

Re: use var to form name of object

2006-07-04 Thread gel
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? > >

use var to form name of object

2006-07-04 Thread gel
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,softwar