File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -526,10 +526,9 @@ Notes:
526
526
527
527
(4)
528
528
In other words, ``date1 < date2 `` if and only if ``date1.toordinal() <
529
- date2.toordinal() ``. In order to stop comparison from falling back to the
530
- default scheme of comparing object addresses, date comparison normally raises
531
- :exc: `TypeError ` if the other comparand isn't also a :class: `date ` object.
532
- However, ``NotImplemented `` is returned instead if the other comparand has a
529
+ date2.toordinal() ``. Date comparison raises :exc: `TypeError ` if
530
+ the other comparand isn't also a :class: `date ` object. However,
531
+ ``NotImplemented `` is returned instead if the other comparand has a
533
532
:meth: `timetuple ` attribute. This hook gives other kinds of date objects a
534
533
chance at implementing mixed-type comparison. If not, when a :class: `date `
535
534
object is compared to an object of a different type, :exc: `TypeError ` is raised
You can’t perform that action at this time.
0 commit comments