The Python Oracle

Why does python `any` return a bool instead of the value?

This video explains
Why does python `any` return a bool instead of the value?

--

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: Hypnotic Puzzle2

--

Chapters
00:00 Question
01:13 Accepted answer (Score 49)
02:36 Answer 2 (Score 22)
03:19 Answer 3 (Score 16)
04:01 Answer 4 (Score 5)
04:36 Thank you

--

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

Question links:
[http://www.python.org/~guido/]: http://www.python.org/~guido/

Accepted answer links:
[requested]: http://mail.python.org/pipermail/python-...
[responded]: http://mail.python.org/pipermail/python-...

Answer 3 links:
[assignment expressions (PEP 572)]: https://www.python.org/dev/peps/pep-0572/
[PEP description]: https://www.python.org/dev/peps/pep-0572/

Answer 4 links:
[on python-ideas]: http://permalink.gmane.org/gmane.comp.py...

--

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

--

Tags
#python #function #internal

#avk47