New submission from Raymond Hettinger <[email protected]>:
Current signature:
pow(x, y, z=None, /)
Proposed signature:
pow(base, exp, mod=None)
Benefits:
* Meaningful and self-explanatory parameters in tooltips
* Optionally clearer calls for the three argument form:
pow(2, 5, mod=4)
* More usable with partial():
squared = partial(pow, exp=2)
----------
components: Library (Lib)
keywords: easy (C)
messages: 352876
nosy: mark.dickinson, rhettinger
priority: normal
severity: normal
status: open
title: Expose meaningful keyword arguments for pow()
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue38237>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com