F
Frank Millman
Hi all
Is defaultdict thread safe?
Assume I have -
from collections import defaultdict
my_dict = defaultdict(list)
If two threads call "my_dict['abc'].append(...)" simultaneously, is it
guaranteed that my_dict['abc'] will end up containing two elements?
Thanks
Frank Millman
Is defaultdict thread safe?
Assume I have -
from collections import defaultdict
my_dict = defaultdict(list)
If two threads call "my_dict['abc'].append(...)" simultaneously, is it
guaranteed that my_dict['abc'] will end up containing two elements?
Thanks
Frank Millman