local variable 'a' referenced b

Demian Brecht demianbrecht at gmail.com
Wed Oct 3 04:05:53 EDT 2012


>
> One problem with short examples is they mask the reason for the code to
> be structured that way.
>
>
Couldn't agree more (I don't think I've ever written a nested function
outside a closure). I made the assumption that the OP wasn't asking about
closures based on his code samples. In hindsight, should have likely asked
for clarification first.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121003/310d4438/attachment.html>


More information about the Python-list mailing list