|
Python and Ruby Differences: 0 == ? So I've been learning Ruby and Ruby On Rails over the last few weeks for a new project. Today I ran across something, well, different:
Returns "0 == true". A "Gotcha!" moment for this old C hacker.
Now Python:
Returns "0 == false".
Investigating this a bit more:
More info: Ian Bicking talks about Truth in Python and Ruby some too (and other topics). |