[issue10654] test_datetime fails on Python3.2 windows binary
Alexander Belopolsky
report at bugs.python.org
Wed Dec 8 20:55:09 CET 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Wed, Dec 8, 2010 at 2:21 PM, Hirokazu Yamamoto
<report at bugs.python.org> wrote:
..
> /////////////////////////////////////////////
>
> 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
>
What is the output here? If you do this at the '>>>' prompt, you
should see the results, if you do it in a script, please add a
print().
Does this also happen with plain datetime or only a subclass? What
about time, date, or their subclasses?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10654>
_______________________________________
More information about the Python-bugs-list
mailing list