Author nmarrow
Recipients docs@python, nmarrow
Date 2017-09-14.17:25:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505409903.44.0.981302539758.issue31472@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2017-09-14 17:25:03nmarrowsetrecipients: + nmarrow, docs@python
2017-09-14 17:25:03nmarrowsetmessageid: <1505409903.44.0.981302539758.issue31472@psf.upfronthosting.co.za>
2017-09-14 17:25:03nmarrowlinkissue31472 messages
2017-09-14 17:25:03nmarrowcreate