New submission from Serhiy Storchaka: When the builtins module was converted to Argument Clinic, round() was omitted because existing signature of round() wasn't supported with the inspect module. Now round() supports None as the value for the ndigits arguments, and this is the default value. round() now has the signature round(number, ndigits=None).
Proposed PR converts round() to Argument Clinic. This has two benefits: 1. inspect.signature() now works with round. 2. Faster parsing keyword arguments. ---------- components: Interpreter Core messages: 298539 nosy: serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Convert round() to Arument Clinic type: enhancement versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30950> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com