Re: problem updating variable in a module

2008-09-26 Thread Tim Rowe
2008/9/24 Terry Reedy <[EMAIL PROTECTED]>: > With the mod/mod1 mixup fixed, you do not need the update function. > mod.a = 20 > should do the same thing. I was assuming that the update function was just to illustrate the access problem the writer was having. I think the chances are the problem i

Re: problem updating variable in a module

2008-09-24 Thread Terry Reedy
[EMAIL PROTECTED] wrote: Hi, I've a problem updating my variable in a module. In my main program, I call a function from mod1 to update a variable of mod1 As soon as I update this varibale, I check it back in the mail program but it the variable from mod1 does not get updated. main Program:

Re: problem updating variable in a module

2008-09-24 Thread dudeja . rajat
>I take it you do have a *really* good reason to use a global? Please suggest some way other than using global. I want to get rid of it -- Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: problem updating variable in a module

2008-09-24 Thread dudeja . rajat
Thanks Tim, Yes, I mean 'mod' only. But this does not work for me On Wed, Sep 24, 2008 at 4:19 PM, Tim Rowe <[EMAIL PROTECTED]> wrote: > 2008/9/24 <[EMAIL PROTECTED]>: > > Hi, > > > > I've a problem updating my variable in a module. > > > > In my main program, I call a function from mod1 to u

Re: problem updating variable in a module

2008-09-24 Thread Tim Rowe
2008/9/24 <[EMAIL PROTECTED]>: > Hi, > > I've a problem updating my variable in a module. > > In my main program, I call a function from mod1 to update a variable of mod1 > As soon as I update this varibale, I check it back in the mail program but > it the variable from mod1 does not get updated.