Skip to content

product function patch #45434

Closed
Closed

Description

@ryanfreckleton
BPO 1093
Nosy @gvanrossum, @loewis
Files
  • product_function.diff
  • 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 2007-09-03.05:58:10.229>
    created_at = <Date 2007-09-03.04:27:00.959>
    labels = ['tests', 'type-bug', 'library', 'docs']
    title = 'product function patch'
    updated_at = <Date 2007-09-03.05:58:10.207>
    user = 'https://bugs.python.org/ryanfreckleton'

    bugs.python.org fields:

    activity = <Date 2007-09-03.05:58:10.207>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2007-09-03.05:58:10.229>
    closer = 'gvanrossum'
    components = ['Documentation', 'Library (Lib)', 'Tests']
    creation = <Date 2007-09-03.04:27:00.959>
    creator = 'ryan.freckleton'
    dependencies = []
    files = ['8379']
    hgrepos = []
    issue_num = 1093
    keywords = []
    message_count = 3.0
    messages = ['55599', '55600', '55601']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'loewis', 'ryan.freckleton']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1093'
    versions = ['Python 2.6']

    Activity

    1. ryanfreckleton commented on Sep 3, 2007

      ryanfreckletonmannequin
      MannequinAuthor

      This is a patch to implement a product() builtin function. It works
      behaves similarly to reduce(operator.mul,...) but is implemented in C.

      Tests and documentation are included in this patch.

    2. added
      docsDocumentation in the Doc dir
      stdlibStandard Library Python modules in the Lib/ directory
      testsTests in the Lib/test dir
      type-bugAn unexpected behavior, bug, or error
      on Sep 3, 2007
    3. loewis commented on Sep 3, 2007

      loewismannequin
      Mannequin

      -1. I doubt this is needed often enough to justify a builtin function.

    4. gvanrossum commented on Sep 3, 2007

      @gvanrossum
      Member

      Thanks, but no thanks; I was quickly dissuaded from the need for this.

    5. transferred this issue fromon Apr 10, 2022
    6. KavyanshKhaitan2 commented on Dec 27, 2025

      @KavyanshKhaitan2

      Looking at it now, would be a cool addition tbh.

    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

      docsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions