Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to the standard normal distribution #90893

Closed
rhettinger opened this issue Feb 13, 2022 · 4 comments
Closed

Default to the standard normal distribution #90893

rhettinger opened this issue Feb 13, 2022 · 4 comments
Labels
3.11 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@rhettinger
Copy link
Contributor

BPO 46737
Nosy @rhettinger, @mdickinson, @ZackerySpytz
PRs
  • bpo-46737: Add default arguments to random.{gauss,normalvariate} #31360
  • 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 2022-02-15.23:12:35.241>
    created_at = <Date 2022-02-13.11:27:05.506>
    labels = ['type-feature', 'library', '3.11']
    title = 'Default to the standard normal distribution'
    updated_at = <Date 2022-02-15.23:12:35.241>
    user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2022-02-15.23:12:35.241>
    actor = 'rhettinger'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-02-15.23:12:35.241>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2022-02-13.11:27:05.506>
    creator = 'rhettinger'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46737
    keywords = ['patch']
    message_count = 4.0
    messages = ['413177', '413184', '413293', '413304']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'mark.dickinson', 'ZackerySpytz']
    pr_nums = ['31360']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue46737'
    versions = ['Python 3.11']

    @rhettinger
    Copy link
    Contributor Author

    This is really minor, but it would convenient if we provided default arguments:

        random.gauss(mu=0.0, sigma=1.0)
        random.normalvariate(mu=0.0, sigma=1.0)

    @rhettinger rhettinger added 3.11 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Feb 13, 2022
    @mdickinson
    Copy link
    Member

    +1

    @ZackerySpytz
    Copy link
    Mannequin

    ZackerySpytz mannequin commented Feb 15, 2022

    I have created a patch for this issue. Please consider having a look.

    @rhettinger
    Copy link
    Contributor Author

    New changeset 08ec801 by Zackery Spytz in branch 'main':
    bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360)
    08ec801

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants