Skip to content

Convert round() to Arument Clinic #75133

Closed

Description

@serhiy-storchaka
BPO 30950
Nosy @rhettinger, @mdickinson, @serhiy-storchaka
PRs
  • bpo-30950: Convert round() to Argument Clinic. #2740
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-11-15.15:51:50.250>
    created_at = <Date 2017-07-17.15:47:25.769>
    labels = ['interpreter-core', 'type-feature', '3.7']
    title = 'Convert round() to Arument Clinic'
    updated_at = <Date 2017-11-15.15:51:50.249>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2017-11-15.15:51:50.249>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-15.15:51:50.250>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2017-07-17.15:47:25.769>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30950
    keywords = []
    message_count = 2.0
    messages = ['298539', '306277']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'mark.dickinson', 'serhiy.storchaka']
    pr_nums = ['2740']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue30950'
    versions = ['Python 3.7']

    Activity

    1. serhiy-storchaka commented on Jul 17, 2017

      @serhiy-storchaka
      MemberAuthor

      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.

    2. added
      3.7 (EOL)
      interpreter-core
      type-feature
      on Jul 17, 2017
    3. serhiy-storchaka commented on Nov 15, 2017

      @serhiy-storchaka
      MemberAuthor

      New changeset aca7f57 by Serhiy Storchaka in branch 'master':
      bpo-30950: Convert round() to Argument Clinic. (bpo-2740)
      aca7f57

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)interpreter-coretype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions