mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Fix typo in method name. The LT class implemented less than. The LE class
should implement less than or equal to (as the code does).
This commit is contained in:
parent
705cd06f91
commit
04097a6282
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ class TestHeapC(TestHeap):
|
|||
class LE:
|
||||
def __init__(self, x):
|
||||
self.x = x
|
||||
def __lt__(self, other):
|
||||
def __le__(self, other):
|
||||
return self.x >= other.x
|
||||
data = [random.random() for i in range(100)]
|
||||
target = sorted(data, reverse=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue