[Python-Dev] more timely detection of unbound locals
Fred Drake
fdrake at acm.org
Wed May 11 01:37:09 CEST 2011
On Tue, May 10, 2011 at 6:38 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> I don't know why it was thought necessary to distinguish between them in the
> first place.
New users almost constantly expressed confusion by NameError when the name
was clearly bound at global scope, and a subsequent assignment caused it to be
considered a local in their function.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
"Give me the luxuries of life and I will willingly do without the necessities."
--Frank Lloyd Wright
More information about the Python-Dev
mailing list