Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Is python's "in" language construct thread-safe for lists?

$
0
0

Is obj in a_list thread-safe while a_list might be modified in a different thread?

Here's a comprehensive yet non-exhaustive list of examples of list operations and whether or not they are thread safe, however I couldn't find any reference for the in language construct.

In terms of python implementation, I use CPython, but answers re other implementations would be helpful too for the community.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>