22 Oct
2009
22 Oct
'09
7 a.m.
Jim Jewett writes:
On Tue, Oct 20, 2009 at 7:34 AM, Masklinn <masklinn@masklinn.net> wrote:
But unless the language is dynamically scoped (which is getting pretty rare these days, and which Python definitely isn't)
err ... current python. I believe that changed around python 2.2.
I've wanted a way to reverse that more often than I've wanted a way to avoid naming a function.
It's funny ... the language I use most is Emacs Lisp and that has taught me a severe aversion to dynamic scoping by default. Sometimes it's useful, but when I am using say Common Lisp an occasional defvar just isn't that painful. I don't think I've ever missed dynamic scope in Python since my first few days with it.