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.