[issue30950] Convert round() to Arument Clinic

Serhiy Storchaka report at bugs.python.org
Mon Jul 17 11:47:25 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue30950>
_______________________________________


More information about the Python-bugs-list mailing list