On 25/02/2020 15:06, 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.

Hiding your dictionary away inside a class or instance isn't going to protect it from threading disasters by itself, though it will make it easier to protect it as you need.

--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to