[issue38237] Expose meaningful keyword arguments for pow()

Berry Schoenmakers report at bugs.python.org
Tue Mar 17 07:50:58 EDT 2020


Berry Schoenmakers <l.a.m.schoenmakers at tue.nl> added the comment:

Maybe a use case in this direction: int(x, base=10).
Because, if you type 

    int(x='3', base=12)

you get

    TypeError: 'x' is an invalid keyword argument for int()

and x needs to be a positional-only to program this yourself.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38237>
_______________________________________


More information about the Python-bugs-list mailing list