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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -