Scope, type and UnboundLocalError

Paddy paddy3118 at netscape.net
Sun Jul 9 16:56:36 EDT 2006


Fredrik Lundh wrote:
> Paddy wrote:
>
> > ... irrelevant as in 'although only mutable objects can have their
> > state modified; if n has a mutable value but the assignment statement
> > changed n to refer to another object, then the name would be tagged as
> > local'?
> >
> > Oh bosh, can anyone come at it from a different tack?
>
> look for "Assignment of an object to a single target is recursively
> defined as follows" on this page (or at the corresponding page in the
> language reference):
>
>      http://pyref.infogami.com/assignments
>
> </F>
I had a look Frederick but the page lead to:
  http://pyref.infogami.com/subscriptions
Which again failed to mention namespace issues.

- Pad.




More information about the Python-list mailing list