Does threading.local use locks for access?

Viewed 168

Is there a Lock.acquire/release being done under the covers in the following statement:

my_thread_local = threading.local()
my_thread_local.some_value = 1

How about this one:

local_variable = my_thread_local.some_value
1 Answers
Related