mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Remove apply()
This commit is contained in:
parent
fe55464f39
commit
d91085598f
56 changed files with 179 additions and 285 deletions
|
@ -82,10 +82,10 @@ class EiffelMethodWrapper(MetaMethodWrapper):
|
|||
|
||||
def __call__(self, *args, **kw):
|
||||
if self.pre:
|
||||
apply(self.pre, args, kw)
|
||||
Result = apply(self.func, (self.inst,) + args, kw)
|
||||
self.pre(*args, **kw)
|
||||
Result = self.func(self.inst, *args, **kw)
|
||||
if self.post:
|
||||
apply(self.post, (Result,) + args, kw)
|
||||
self.post(Result, *args, **kw)
|
||||
return Result
|
||||
|
||||
class EiffelHelper(MetaHelper):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue