python dictionary is thread safe? -
Some said that the dragon dictionary thread is safe, does it mean that I can not modify or edit items in a dictionary Can not I?
Two concepts are completely different, that means two threads modify the same object at the same time The system can be left in an inconsistent state.
He said, you can not modify a dictionary while walking on it. See.
The dictionary P should not be mutated during recurrence. It is safe to modify the values of the keywords (as is the Python 2.1), as you repeat on the dictionary, but The keys are not set up for such a long time only.
Comments
Post a Comment