Newbie NameError problem

cokofreedom at gmail.com cokofreedom at gmail.com
Wed Dec 12 11:58:15 EST 2007


On Dec 12, 5:51 pm, Paul Rudin <paul.nos... at rudin.co.uk> wrote:
> MartinRineh... at gmail.com writes:
> > I don't understand what I don't understand in the following:
>
> I haven't tried to understand what your code is doing - but the
> NameError arises because you try to use Loc before its definition. Put
> the definition first and the error should go away.

Class Loc must be placed ABOVE the code that uses it.



More information about the Python-list mailing list