Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp> added the comment: 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10654> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com