Author pitrou
Recipients docs@python, graingert, jeff.allen, pablogsal, pitrou, serhiy.storchaka, steven.daprano
Date 2021-10-12.08:35:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634027749.77.0.656059935614.issue45435@roundup.psfhosted.org>
In-reply-to
Content
I'm also surprised to learn that `L.sort()` and `D1.update(D2)` are supposed to be atomic. They certainly are not in the general case.

Remember, any Python code can release the GIL (because the GIL is released periodically in the interpreter loop). Any DECREF can also release the GIL (because it may trigger the execution of arbitrary destructors). This restricts a lot which operations can be safely considered atomic.
History
Date User Action Args
2021-10-12 08:35:49pitrousetrecipients: + pitrou, steven.daprano, docs@python, serhiy.storchaka, jeff.allen, graingert, pablogsal
2021-10-12 08:35:49pitrousetmessageid: <1634027749.77.0.656059935614.issue45435@roundup.psfhosted.org>
2021-10-12 08:35:49pitroulinkissue45435 messages
2021-10-12 08:35:49pitroucreate