[Python-Dev] more timely detection of unbound locals
Eli Bendersky
eliben at gmail.com
Tue May 10 20:59:04 CEST 2011
<snip>
> > > # Early reference to local
> > > UnboundLocalError: local variable 'bob' referenced before assignment
> >
> > I would change this to
> > "local name 'bob' used before the assignment that makes it a local name"
> >
> > Calling names 'variables' is itself a point of confusion.
>
> Yes, your phrasing is much better.
>
+1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110510/780da783/attachment.html>
More information about the Python-Dev
mailing list