The Python Oracle

Why is Decimal('0') > 9999.0 True 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: Droplet of life

--

Chapters
00:00 Question
01:04 Accepted answer (Score 12)
03:15 Answer 2 (Score 1)
03:42 Thank you

--

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

Question links:
[Why is ''>0 True in Python?]: https://stackoverflow.com/questions/2384...
[answer]: https://stackoverflow.com/questions/2384...

Accepted answer links:
http://bugs.python.org/issue2531

--

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

--

Tags
#python #comparison #types #operators #logic

#avk47