The Python Oracle

How do I specify custom comparator for the "in" keyword in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Digital Sunset Looping

--

Chapters
00:00 Question
00:55 Accepted answer (Score 9)
01:13 Answer 2 (Score 2)
01:34 Answer 3 (Score 1)
01:55 Answer 4 (Score 1)
02:46 Thank you

--

Full question
https://stackoverflow.com/questions/9898...

Accepted answer links:
[any]: http://docs.python.org/library/functions...
[__contains__]: http://docs.python.org/reference/datamod...

Answer 3 links:
[one in the standard lib]: http://docs.python.org/library/operator....

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python27 #python2x

#avk47