3 ms·
Numbers are immutable and incrementing one eg in an attribute is actuay many byte code ops. So doesn't work even currently unless you are fine with losing updat
by fulafel 5y ago
Numbers are immutable and incrementing one eg in an attribute is actuay many byte code ops. So doesn't work even currently unless you are fine with losing updates. But a version of this question using another example (eg using a list as a queue) is interesting.
- Thorrez 5y agoHah, we both came to the same conclusion at the same time. Regarding list, it sounds like it might actually keep working atomically without the GIL: > A lot of work has gone into the list and dict implementations to make them thread-safe. And so on.
- fulafel 5y agoYep. So in a final answer to the original question of backwards bug-compatibility (https://news.ycombinator.com/item?id=28897534 https://news.ycombinator.com/item?id=28897534), it seems that it will be retained under the current proposal.