PyEval_GetLocals and unreferenced variables

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed Dec 3 01:06:12 EST 2014


Ned Batchelder wrote:

> I would use thread locals for this: 
> https://docs.python.org/2/library/threading.html#threading.local

You could get dynamic scoping that way, but the OP
seems to want lexical scoping.

-- 
Greg



More information about the Python-list mailing list