Akos Kiss <akosthek...@gmail.com> added the comment:

I couldn't find any discussion in the language reference about fundamental 
differences between calls to built-in functions and user-defined functions. (I 
tried to read Sections 6.3.4. "Calls" and 8.6. "Function definitions" 
carefully.) Until now I had the impression that built-in and user-defined 
functions should be as similar as possible.

BTW, a user-defined function can also implement support for unused/excess 
keyword arguments (or arguments used on-demand): it only has to add **kwargs at 
the end of its signature. And that's exactly how the documentation specifies 
the signature of format: str.format(*args, **kwargs). That API documentation 
signals (to me at least) that this function should be called just like any 
other function that has a (*args, **kwargs) signature, be it built-in of 
user-defined.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39694>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to