Message403716
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. |
|
Date |
User |
Action |
Args |
2021-10-12 08:35:49 | pitrou | set | recipients:
+ pitrou, steven.daprano, docs@python, serhiy.storchaka, jeff.allen, graingert, pablogsal |
2021-10-12 08:35:49 | pitrou | set | messageid: <1634027749.77.0.656059935614.issue45435@roundup.psfhosted.org> |
2021-10-12 08:35:49 | pitrou | link | issue45435 messages |
2021-10-12 08:35:49 | pitrou | create | |
|