please make relativedelta more inheritance-friendly

Bug #1010199 reported by Shai Berger
6
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.

Tags: wishlist
Changed in dateutil:
importance: Undecided → Low
assignee: nobody → Tomi Pieviläinen (tpievila)
Revision history for this message
Paul G (p-ganssle) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.