[Python-Dev] more timely detection of unbound locals (original) (raw)

Eli Bendersky eliben at gmail.com
Tue May 10 20:59:04 CEST 2011


> > # 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