Issue 31472: "Emulating callable objects" documentation misleading (original) (raw)
The documentation for emulating callable objects with call seems to imply only positional arguments are supported. For instance, it says call is "object.call(self[, args…])" and describes:
Called when the instance is “called” as a function; if this method is defined, x(arg1, arg2, ...) is a shorthand for x.call(arg1, arg2, ...).
When it should be something like (Not sure exactly what the syntax would be here): "object.call(self[, args…] [,**kwargs...])"
Called when the instance is “called” as a function; if this method is defined, x(arg1, arg2, ..., arg3=arg3) is a shorthand for x.call(arg1, arg2, ..., arg3=arg3).