The Python Oracle

Is it possible for `__contains__` to return non-boolean value?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Underwater World

--

Chapters
00:00 Is It Possible For `__contains__` To Return Non-Boolean Value?
00:36 Answer 1 Score 10
00:58 Answer 2 Score 6
01:21 Answer 3 Score 5
02:04 Accepted Answer Score 5
02:56 Thank you

--

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

--

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

--

Tags
#python

#avk47