This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, brian.curtin, ocean-city
Date 2010-12-08.19:55:07
SpamBayes Score 0.00026478776
Marked as misclassified No
Message-id <AANLkTimMebtbnNbjAfx+2fjuWW7qNN2ABbqjXMMN588O@mail.gmail.com>
In-reply-to <1291836102.72.0.340931197912.issue10654@psf.upfronthosting.co.za>
Content
On Wed, Dec 8, 2010 at 2:21 PM, Hirokazu Yamamoto
<report@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?
History
Date User Action Args
2010-12-08 19:55:09belopolskysetrecipients: + belopolsky, ocean-city, brian.curtin
2010-12-08 19:55:07belopolskylinkissue10654 messages
2010-12-08 19:55:07belopolskycreate