You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Activity
serhiy-storchaka commentedon Jul 17, 2017
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:
inspect.signature() now works with round.
Faster parsing keyword arguments.
serhiy-storchaka commentedon Nov 15, 2017
New changeset aca7f57 by Serhiy Storchaka in branch 'master':
bpo-30950: Convert round() to Argument Clinic. (bpo-2740)
aca7f57