bpo-39453: Make list.__contains__ hold strong references to avoid crashes (GH-18181)

3 files changed