File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -526,10 +526,9 @@ Notes:
526526
527527(4)
528528 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
533532 :meth: `timetuple ` attribute. This hook gives other kinds of date objects a
534533 chance at implementing mixed-type comparison. If not, when a :class: `date `
535534 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