f is nonlocal to times(), local to multiplier(). As the docs for the locals() function say, "Free variables are returned by locals() when it is called in function blocks, but not in class blocks."
On Sun, Aug 18, 2013 at 3:41 AM, <w.w.mil...@googlemail.com> wrote: > Is f local or not? > http://pastebin.com/AKDJrbDs > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list