please make relativedelta more inheritance-friendly
Bug #1010199 reported by
Shai Berger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
New
|
Low
|
Tomi Hukkalainen |
Bug Description
Hi,
I needed to subclass relativedelta. Then, it was disappointing to find that the __add__, __sub__ and __neg__ operations explicitly return a new relativedelta object; it would be much nicer if they could return a self.__class__ object.
Thanks,
Shai.
Changed in dateutil: | |
importance: | Undecided → Low |
assignee: | nobody → Tomi Pieviläinen (tpievila) |
To post a comment you must log in.
I have migrated this to the github issue tracker: https:/ /github. com/dateutil/ dateutil/ issues/ 44
And submitted a fix: https:/ /github. com/dateutil/ dateutil/ pull/49