View Single Post
Old 05-28-2010, 10:18 AM   #31
Pirate Bill
Quality since 1973
 
Pirate Bill's Avatar
 
Join Date: Dec 2007
Location: Right here
Posts: 473
Pirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of coolPirate Bill is the epitome of cool
Quote:
Originally Posted by Ghoulish Delight View Post
When I run this and it gets to that 2nd loop instead of executing as:
ClassList[0].Method1()
subprocess.call
other work
ClassList[1].Method1()
subprocess.call
other work
ClassList[2].Method1(0
....

I get:
ClassList[0].Method1()
ClassList[1].Method1()
ClassList[2].Method1()
ClassList[3].Method1()
ClassList[4].Method1()
subprocess.call
other work
subprocess.call
other work
subprocess.call
other work
subprocess.call
other work
subprocess.call
other work
My understanding of Python is rather basic, but I think I see the problem. You need to indent the For j loop so it's nested in the For i loop.

ETA: I just reread and this probably won't work either. Meh, it was a shot.
Pirate Bill is offline   Submit to Quotes Reply With Quote