3 ms·
How is that different than in Python? Normally, an Object would always be truthy, if you didn't implement the __nonzero__ method. The problem is that the Dateti
by icebraining 13y ago
How is that different than in Python? Normally, an Object would always be truthy, if you didn't implement the __nonzero__ method. The problem is that the Datetime class does implement that method, on purpose.