mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Get rid of many apply() calls.
This commit is contained in:
parent
f389c77273
commit
68468eba63
38 changed files with 85 additions and 91 deletions
|
@ -77,7 +77,7 @@ class UserList:
|
|||
def count(self, item): return self.data.count(item)
|
||||
def index(self, item): return self.data.index(item)
|
||||
def reverse(self): self.data.reverse()
|
||||
def sort(self, *args): apply(self.data.sort, args)
|
||||
def sort(self, *args): self.data.sort(*args)
|
||||
def extend(self, other):
|
||||
if isinstance(other, UserList):
|
||||
self.data.extend(other.data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue