Message123636
This is shortest code to reproduce. But strange,
I can see TypeError on VC6(both Debug and Release)
E:\>e:\python-dev\py3k\pc\VC6\python.exe x.py
Traceback (most recent call last):
File "x.py", line 10, in <module>
a+i
TypeError: unsupported operand type(s) for +: 'SubclassDatetime' and 'int'
/////////////////////////////////////////////
from datetime import datetime
class SubclassDatetime(datetime):
sub_var = 1
a = SubclassDatetime(2002, 3, 2, 17, 6)
# Add/sub ints or floats should be illegal
for i in 1, 1.0:
a+i |
|
Date |
User |
Action |
Args |
2010-12-08 19:21:42 | ocean-city | set | recipients:
+ ocean-city, belopolsky, brian.curtin |
2010-12-08 19:21:42 | ocean-city | set | messageid: <1291836102.72.0.340931197912.issue10654@psf.upfronthosting.co.za> |
2010-12-08 19:21:40 | ocean-city | link | issue10654 messages |
2010-12-08 19:21:40 | ocean-city | create | |
|