Lounge of Tomorrow

€uromeinke, FEJ. and Ghoulish Delight RULE!!! NA abides.  


Go Back   Lounge of Tomorrow > A.S.C.O.T > Egg Head
Swank Swag
FAQ Members List Calendar Today's Posts Clear Unread

Reply
 
Thread Tools Search this Thread Display Modes
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
Old 05-28-2010, 10:50 AM   #32
Ghoulish Delight
I Floop the Pig
 
Ghoulish Delight's Avatar
 
Join Date: Jan 2005
Location: Alternative Swankstyle
Posts: 19,348
Ghoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of cool
Send a message via AIM to Ghoulish Delight Send a message via Yahoo to Ghoulish Delight
Huh? You lost me PB. I don't see how any of what you posted can be read as vague programming-related sexual innuendo.





No, the loops shouldn't be nested. The first is initializing the list of MyClass objects, the 2nd is referencing the objects in the list.

C has the "volatile" key word which more or less guarantees in-order execution, compiler optimization be damned. I was just wondering if anyone knew an equivalent in Python.
__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.'
-TJ

Ghoulish Delight is offline   Submit to Quotes Reply With Quote
Old 05-28-2010, 01:45 PM   #33
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
Huh? You lost me PB. I don't see how any of what you posted can be read as vague programming-related sexual innuendo.
Oops, my bad. Back on topic... Compiler? I hardly new her!
Pirate Bill is offline   Submit to Quotes Reply With Quote
Old 05-28-2010, 02:32 PM   #34
scaeagles
I LIKE!
 
scaeagles's Avatar
 
Join Date: Jan 2005
Posts: 7,819
scaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of coolscaeagles is the epitome of cool
Quote:
Originally Posted by Ghoulish Delight View Post
C has the "volatile" key word
Hey baby....what's your volatile key word?
scaeagles is offline   Submit to Quotes Reply With Quote
Old 01-12-2011, 12:00 AM   #35
Ghoulish Delight
I Floop the Pig
 
Ghoulish Delight's Avatar
 
Join Date: Jan 2005
Location: Alternative Swankstyle
Posts: 19,348
Ghoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of coolGhoulish Delight is the epitome of cool
Send a message via AIM to Ghoulish Delight Send a message via Yahoo to Ghoulish Delight
God damnit I love XKCD. LOVE XKCD!!!!

__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.'
-TJ

Ghoulish Delight is offline   Submit to Quotes Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 12:35 AM.


Lunarpages.com Web Hosting

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.