Message7347

Author fwierzbicki
Recipients Arfrever, fwierzbicki
Date 2012-08-03.16:33:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344011606.72.0.196030381808.issue1950@psf.upfronthosting.co.za>
In-reply-to
Content
But, this is the behavior of CPython 2.7 (I think it is fixed in 3.3)


Python 2.7.3 (default, Apr 20 2012, 22:39:59) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import date
>>> x = date(1,2,3)
>>> y = date(4,5,6)
>>> x + y
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'datetime.date' and 'datetime.date'
History
Date User Action Args
2012-08-03 16:33:26fwierzbickisetmessageid: <1344011606.72.0.196030381808.issue1950@psf.upfronthosting.co.za>
2012-08-03 16:33:26fwierzbickisetrecipients: + fwierzbicki, Arfrever
2012-08-03 16:33:26fwierzbickilinkissue1950 messages
2012-08-03 16:33:26fwierzbickicreate