negative of relativedelta with weekday inconsistent

Bug #1236654 reported by cancan101
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dateutil
New
Undecided
Unassigned

Bug Description

For years this is consistent:

In [4]: relativedelta(years=10) == relativedelta(years=-10)
Out[4]: False

In [5]: -relativedelta(years=10) == relativedelta(years=-10)
Out[5]: True

However for weekday:
In [9]: relativedelta(weekday=1) == relativedelta(weekday=1)
Out[9]: True

In [10]: relativedelta(weekday=1) == relativedelta(weekday=-1)
Out[10]: False

In [11]: -relativedelta(weekday=1) == relativedelta(weekday=-1)
Out[11]: False

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.