The Python Oracle

Unexpected id method behaviour

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:31 Accepted answer (Score 2)
01:33 Answer 2 (Score 0)
02:34 Thank you

--

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

Accepted answer links:
https://docs.python.org/2/c-api/int.html...
["is" operator behaves unexpectedly with integers]: https://stackoverflow.com/questions/3063...

--

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

--

Tags
#python #lowlevel

#avk47