[Python-ideas] Re: Support for atomic types in Python

2019-09-10 Thread Antoine Pitrou
On Tue, 10 Sep 2019 18:59:55 +1000 Chris Angelico wrote: > On Tue, Sep 10, 2019 at 6:55 PM Antoine Pitrou wrote: > > > > On Mon, 9 Sep 2019 19:04:35 +1000 > > Chris Angelico wrote: > > > On Mon, Sep 9, 2019 at 12:34 AM Vinay Sharma via Python-ideas > > > wrote: > > > > > > > > Currently, C

[Python-ideas] Re: Support for atomic types in Python

2019-09-10 Thread Chris Angelico
On Tue, Sep 10, 2019 at 6:55 PM Antoine Pitrou wrote: > > On Mon, 9 Sep 2019 19:04:35 +1000 > Chris Angelico wrote: > > On Mon, Sep 9, 2019 at 12:34 AM Vinay Sharma via Python-ideas > > wrote: > > > > > > Currently, C++ has support for atomic types, on which operations like > > > add, sub, xor,

[Python-ideas] Re: Support for atomic types in Python

2019-09-10 Thread Antoine Pitrou
Hi Vinay, On Mon, 09 Sep 2019 08:23:48 - Vinay Sharma via Python-ideas wrote: > > Also, as far as I know (might be wrong) Value is stored in shared memory and > is therefore very fast also. So, what I am proposing is a similar object to > value to which operations like add, sub, xor, etc

[Python-ideas] Re: Support for atomic types in Python

2019-09-10 Thread Antoine Pitrou
On Mon, 9 Sep 2019 19:04:35 +1000 Chris Angelico wrote: > On Mon, Sep 9, 2019 at 12:34 AM Vinay Sharma via Python-ideas > wrote: > > > > Currently, C++ has support for atomic types, on which operations like add, > > sub, xor, etc can be done atomically, thereby avoiding data races. > > Having su