gzz-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gzz] Asko 2002-01-(27-31) (umllink)


From: Tuomas Lukka
Subject: Re: [Gzz] Asko 2002-01-(27-31) (umllink)
Date: Sat, 1 Feb 2003 14:08:40 +0200
User-agent: Mutt/1.4i

On Fri, Jan 31, 2003 at 06:33:38PM +0200, Asko Soukka wrote:
> 40h week
> 
> Struggled with umlink article. Proceeding slowly, but still
> forward. I hope I'll get one of my spare time writing projects
> ready in weekend (doing almost two months no :( ). Then I could
> work some overtime if I won't advance faster next week...
> 
> Vegai: I couldn't see what's wrong with umltool after your
> fix :( I got:
> 
>   line 199, in embed_implicit
>   UnboundLocalError: local: 'settings'
> 
> But I don't understand how it could be unbound if it's initialized
> in the beginning of the module. Does every module use the same
> settings object?

UnboundLocalError means that you have the situation

a=1

def f(x):
        print a
        a = x

which is an error, because the assignment means that a 
is a LOCAL to f. To fix, if the global a is what is meant,
please use

def f(x):
        global a
        print a
        a = x

        Tuomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]