Re:How To Let People Know You're A Bad Python Programmer
by abstractbill on Friday August 28, 2009 @01:47PM
(#791858)
They don't seem to work very well:
Great! Looks like we have real closures!
Oh. Maybe not.
[ Parent
| on HN ]
Re:How To Let People Know You're A Bad Python Programmer
by arohner on Friday August 28, 2009 @02:54PM
(#792005)
That's a scoping problem, not a closure problem. The issue in this example is that python doesn't have true lexical scope. It has three scopes: function level, class level, file level. If you wrote "global blah", it would look at file level, not the next function level.
I agree it's broken, but it's a different flaw than the closure problem.