Newbie: need help with control loop
Greg Ewing
greg.ewing at compaq.com
Wed Dec 15 03:19:16 EST 1999
Shaggy wrote:
>
> This was my whole question. Where or what is host_inst. In each case
> it will be different I can create the object, I just can't name it.
I think you want to build a list of instances.
hosts = ['host1','host2','host3','host4','host5',
'host6','host7','host8','host9','host0']
insts = []
for machine in hosts:
insts.append(class_name(machine))
Then you can iterate over insts, initiating the operations,
checking for completion, etc.
Greg
More information about the Python-list
mailing list