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



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to