IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Re: What the hell... is Python broken?
[link|http://www.python.org/doc/current/ref/global.html|The Documentation]

The global statement is a declaration which holds for the entire current code block. It means that the listed identifiers are to be interpreted as globals. While using global names is automatic if they are not defined in the local scope, assigning to global names would be impossible without global.


Emphasis mine.

So:

import os, string, thread

X=7481
Y=1000
Z=1000

def dosubslot(num):
global X, Y, Z
if X< num+10: Y= num+10
if Y< num+10: Y= num+10
if Z< num+10: Z= num+10

num= Y
print dir()
dosubslot(num)


should be what you need.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New That fixed it. Many thanks.
[link|http://www.angelfire.com/ca3/marlowe/index.html|http://www.angelfir...e/index.html]
Everything's a mystery until you figure out how it works.
We are here to go!
The nihilists and the liars have buried truth alive in a shallow grave.
     What the hell... is Python broken? - (marlowe) - (15)
         Hmmm... I get the same error - (tjsinclair)
         dunno python but how does it know the diff between an - (boxley)
         How ironic - (ben_tilly) - (10)
             Re: How ironic - (admin) - (9)
                 What do you mean not easy to fix? - (ben_tilly) - (8)
                     Re: What do you mean not easy to fix? - (admin) - (7)
                         Ah. I would have used a different strategy - (ben_tilly) - (6)
                             That's one of the possible fixes. - (admin) - (3)
                                 Understood - (ben_tilly) - (2)
                                     Re: Understood - (admin) - (1)
                                         Good luck then - (ben_tilly)
                             Addendum: - (admin) - (1)
                                 Noted -NT - (ben_tilly)
         Re: What the hell... is Python broken? - (admin) - (1)
             That fixed it. Many thanks. -NT - (marlowe)

Your configuration just allows perl programs to error out faster.
56 ms