3 ms·
At least it saw them all as numbers. The guy I saw who couldn't figure out why two floats didn't compare with == also gave me this gem (in Python): if q
by rachelbythebay 14y ago
At least it saw them all as numbers. The guy I saw who couldn't figure out why two floats didn't compare with == also gave me this gem (in Python):
if query_count < 100000:
continue
Trouble is, query_count was a string, and in Python, things like '1000' are not less than 100000.
$ python -c "print '1000' < 100000"
False