The Python Oracle

Why is the builtin function `any(b'\x00')` behaving differently between python2 and python3?

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: Over a Mysterious Island Looping

--

Chapters
00:00 Question
00:50 Accepted answer (Score 4)
02:28 Answer 2 (Score 2)
03:18 Thank you

--

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

Answer 1 links:
https://docs.python.org/3/library/stdtyp...

--

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

--

Tags
#python

#avk47