mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
This commit is contained in:
commit
c2ccce791c
19 changed files with 86 additions and 124 deletions
|
@ -651,7 +651,7 @@ class date:
|
|||
Operators:
|
||||
|
||||
__repr__, __str__
|
||||
__cmp__, __hash__
|
||||
__eq__, __le__, __lt__, __ge__, __gt__, __hash__
|
||||
__add__, __radd__, __sub__ (add/radd only with timedelta arg)
|
||||
|
||||
Methods:
|
||||
|
@ -786,7 +786,8 @@ class date:
|
|||
"""day (1-31)"""
|
||||
return self._day
|
||||
|
||||
# Standard conversions, __cmp__, __hash__ (and helpers)
|
||||
# Standard conversions, __eq__, __le__, __lt__, __ge__, __gt__,
|
||||
# __hash__ (and helpers)
|
||||
|
||||
def timetuple(self):
|
||||
"Return local time tuple compatible with time.localtime()."
|
||||
|
@ -1010,7 +1011,7 @@ class time:
|
|||
Operators:
|
||||
|
||||
__repr__, __str__
|
||||
__cmp__, __hash__
|
||||
__eq__, __le__, __lt__, __ge__, __gt__, __hash__
|
||||
|
||||
Methods:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue