mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds)
This commit is contained in:
parent
a4d2b869b9
commit
931237e2e6
10 changed files with 14 additions and 16 deletions
|
@ -59,10 +59,10 @@ def main():
|
|||
Delegator.__init__(self, None)
|
||||
def insert(self, *args):
|
||||
print self.name, ": insert", args
|
||||
apply(self.delegate.insert, args)
|
||||
self.delegate.insert(*args)
|
||||
def delete(self, *args):
|
||||
print self.name, ": delete", args
|
||||
apply(self.delegate.delete, args)
|
||||
self.delegate.delete(*args)
|
||||
root = Tk()
|
||||
root.wm_protocol("WM_DELETE_WINDOW", root.quit)
|
||||
text = Text()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue