История изменений
Исправление OSBuster, (текущая версия) :
Ну раньше GIL за всем следил, а теперь никто, кроме твоего кода:
Iterators
Sharing the same iterator object between multiple threads is generally not safe and threads may see duplicate or missing elements when iterating or crash the interpreter.
Но кое-где, чтоб совсем всё без ручного контроля не развалилось, блокировок всё-таки отсыпали, просто менее глобальных:
Built-in types like
dict,list, andsetuse internal locks to protect against concurrent modifications in ways thatbehave similarly to the GIL. However, Python has not historically guaranteed specific behavior for concurrent modifications to these built-in types, so this should be treated as a description of the current implementation, not a guarantee of current or future behavior.
Исправление OSBuster, :
Ну раньше GIL за всем следил, а теперь никто, кроме твоего кода:
Iterators
Sharing the same iterator object between multiple threads is generally not safe and threads may see duplicate or missing elements when iterating or crash the interpreter.
Но кое-где, чтоб совсем всё без ручного контроля не развалилось, блокировок всё-таки отсыпали, просто менее глобальных:
Built-in types like
dict,list, andsetuse internal locks to protect against concurrent modifications in ways that behave similarly to the GIL. However, Python has not historically guaranteed specific behavior for concurrent modifications to these built-in types, so this should be treated as a description of the current implementation, not a guarantee of current or future behavior.
Исправление OSBuster, :
Ну раньше GIL за всем следил, а теперь никто, кроме твоего кода:
Iterators
Sharing the same iterator object between multiple threads is generally not safe and threads may see duplicate or missing elements when iterating or crash the interpreter.
Но кое-где, чтоб совсем всё без ручного контроля не развалилось, блокировок всё-таки отсыпали, просто менее глобальных:
Built-in types like dict, list, and set use internal locks to protect against concurrent modifications in ways that behave similarly to the GIL. However, Python has not historically guaranteed specific behavior for concurrent modifications to these built-in types, so this should be treated as a description of the current implementation, not a guarantee of current or future behavior.
Исходная версия OSBuster, :
Ну раньше GIL за всем следил, а теперь никто, кроме твоего кода:
Iterators
Sharing the same iterator object between multiple threads is generally not safe and threads may see duplicate or missing elements when iterating or crash the interpreter.
Но кое-где блокировок всё-таки отсыпали, просто менее глобальных:
Built-in types like dict, list, and set use internal locks to protect against concurrent modifications in ways that behave similarly to the GIL. However, Python has not historically guaranteed specific behavior for concurrent modifications to these built-in types, so this should be treated as a description of the current implementation, not a guarantee of current or future behavior.