3 ms·
There's no implicit conversion, truthiness in Python is just defined to make sense: http://docs.python.org/library/stdtypes.html#truth-value-testing http://docs
by jpr 16y ago
There's no implicit conversion, truthiness in Python is just defined to make sense: http://docs.python.org/library/stdtypes.html#truth-value-testing http://docs.python.org/library/stdtypes.html#truth-value-tes...
Contrast this to something like Java where all code is littered with shit like foo != null and foo.length != 0.