mirror of
https://github.com/python/cpython.git
synced 2025-09-02 23:18:25 +00:00
Let library modules use the new keyword arguments for list.sort().
This commit is contained in:
parent
42b1ba31af
commit
6b59f5f3fd
7 changed files with 18 additions and 24 deletions
|
@ -77,7 +77,7 @@ class UserList:
|
|||
def count(self, item): return self.data.count(item)
|
||||
def index(self, item, *args): return self.data.index(item, *args)
|
||||
def reverse(self): self.data.reverse()
|
||||
def sort(self, *args): self.data.sort(*args)
|
||||
def sort(self, *args, **kwds): self.data.sort(*args, **kwds)
|
||||
def extend(self, other):
|
||||
if isinstance(other, UserList):
|
||||
self.data.extend(other.data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue