Message123640
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? |
|
Date |
User |
Action |
Args |
2010-12-08 19:55:09 | belopolsky | set | recipients:
+ belopolsky, ocean-city, brian.curtin |
2010-12-08 19:55:07 | belopolsky | link | issue10654 messages |
2010-12-08 19:55:07 | belopolsky | create | |
|