diff options
Diffstat (limited to 'Doc/library/operator.rst')
| -rw-r--r-- | Doc/library/operator.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst index 5d0ea7d..fa02bde 100644 --- a/Doc/library/operator.rst +++ b/Doc/library/operator.rst @@ -339,7 +339,7 @@ expect a function argument. [('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)] -.. function:: methodcaller(name[, args...]) +.. function:: methodcaller(name, /, *args, **kwargs) Return a callable object that calls the method *name* on its operand. If additional arguments and/or keyword arguments are given, they will be given @@ -352,7 +352,7 @@ expect a function argument. Equivalent to:: - def methodcaller(name, *args, **kwargs): + def methodcaller(name, /, *args, **kwargs): def caller(obj): return getattr(obj, name)(*args, **kwargs) return caller |
