Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:

On Wed, Dec 8, 2010 at 2:21 PM, Hirokazu Yamamoto
<rep...@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 <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

Reply via email to