News for hackers. Stuff that matters.
Re:Grumpy: Go running Python by beagle3 on Thursday January 05, 2017 @01:10AM (#13325128)
(assuming mylist is a standard python list) it does prevent races inside mylist.append. It does make mylist.append safe.

When I wrote "append from two threads .. as expected" I meant "two items will be added, which one first is unspecified", and the GIL certainly takes care of that.

I agree it does not protect you from your bad threaded code - but then, nothing short of STM does (and even STM doesn't guarantee starvation in the general sense - nothing can).

There are no comments on this comment yet.