[Python-Dev] nonlocals() function? (original) (raw)

Carl M. Johnson cmjohnson.mailinglist at gmail.com
Mon Apr 5 05:21:44 CEST 2010


On Sun, Apr 4, 2010 at 1:44 PM, Steven D'Aprano <steve at pearwood.info> wrote:

On Mon, 5 Apr 2010 09:03:17 am average wrote:

presently).  That includes dir() too and probably others. You are confused -- globals() and locals() don't return lists.

Yeah, this thread is mostly a mess (what would nonlocals() return anyway?), but there is one serious suggestion in there. Maybe dir() should return a set.

Points in its favor:

Points against:

Overall:

-0

My two bits.

-- Carl Johnson



More information about the Python-Dev mailing list