Daniel Colascione <[email protected]> added the comment: On Oct 1, 2017 10:46 AM, "Antoine Pitrou" <[email protected]> wrote:
Antoine Pitrou <[email protected]> added the comment: While the use case is reasonable (if specialized), It's not that specialized. You might want atomic updates for coordinating with C APIs that expect callers to have this capability. not sure ctypes is the place to expose such functionality, which can be quite extensive (see https://gcc.gnu.org/onlinedocs/gcc/_005f_ 005fatomic-Builtins.html). You don't need to provide all of those builtins. Users can build them in Python out of atomic-compare-and-exchange. Only compare and exchange needs C support. It's not very much code. Perhaps as a separate package on PyPI? I have little interest in a separate PyPI module. I don't want to have to distribute custom-compiled extension modules. ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue31654> _______________________________________ ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue31654> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
