Python 2 is rather inconsistent with comparisons: '1' > 1 is fine, but datetime > date doesn't work. Python 3 refuses both, thankfully.