[issue29299] Argument Clinic: Fix signature of optional positional-only arguments

STINNER Victor report at bugs.python.org
Tue Jan 17 10:25:17 EST 2017


STINNER Victor added the comment:

This issue is blocking me to convert more functions to Argument Clinic. See for example attached getattr_ac.patch which converts getattr() to AC. Without ac_optional_positional.patch, AC generates the signature:

   "getattr($module, object, name, default=None, /)\n"

whereas the following signature is expected:

   "getattr($module, object, name[, default])\n"

----------
Added file: http://bugs.python.org/file46317/getattr_ac.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29299>
_______________________________________


More information about the Python-bugs-list mailing list