encapsulating a global variable

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 25 17:41:26 EST 2020


On 26/02/20 4:06 am, BlindAnagram wrote:
> My interest in this stems from wanting to keep the dictionary only
> available to the function that uses it and also a worry about being
> called from threaded code.

Doing this won't make any difference to the way threaded code behaves.
Threading problems need to be addressed by appropriate use of locks,
etc.

-- 
Greg


More information about the Python-list mailing list