Skip to content

Simplify the Integral ABC #47306

Closed
Closed

Description

@rhettinger
BPO 3056
Nosy @gvanrossum, @rhettinger, @ezio-melotti
Files
  • numbers2.diff: Diff for numbers.py
  • pep2.diff: Diff for the PEP
  • numbers3.diff: Path allowing right hand operand to override a binary operation
  • 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 2011-04-13.01:25:29.868>
    created_at = <Date 2008-06-07.01:57:24.805>
    labels = ['library']
    title = 'Simplify the Integral ABC'
    updated_at = <Date 2013-04-14.09:59:05.283>
    user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2013-04-14.09:59:05.283>
    actor = 'python-dev'
    assignee = 'jyasskin'
    closed = True
    closed_date = <Date 2011-04-13.01:25:29.868>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2008-06-07.01:57:24.805>
    creator = 'rhettinger'
    dependencies = []
    files = ['10539', '10540', '10634']
    hgrepos = []
    issue_num = 3056
    keywords = ['patch']
    message_count = 12.0
    messages = ['67792', '67826', '67941', '68253', '68256', '68318', '68332', '68333', '68991', '90103', '133631', '186901']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'rhettinger', 'jyasskin', 'ezio.melotti', 'python-dev']
    pr_nums = []
    priority = 'low'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue3056'
    versions = ['Python 3.3']

    Activity

    1. rhettinger commented on Jun 7, 2008

      @rhettinger
      ContributorAuthor
      • Reduce Integral to just a single additional abstract method.
      • Supply the binary operations as mixins instead of abstract methods.
      • Three argument __pow__ is now optional.
      • Convert with __int__ instead of __long__.
    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Jun 7, 2008
    3. rhettinger commented on Jun 8, 2008

      @rhettinger
      ContributorAuthor

      Is the patch good to go?

    4. gvanrossum commented on Jun 11, 2008

      @gvanrossum
      Member

      Not really, see the reply I sent to the checkin mail.

    5. rhettinger commented on Jun 16, 2008

      @rhettinger
      ContributorAuthor

      Not much feedback on comp.lang.python.

      Does numbers3.diff look like what you had in mind?

    6. gvanrossum commented on Jun 16, 2008

      @gvanrossum
      Member

      Mostly, but I *really* want to see unittests for this.

    7. rhettinger commented on Jun 17, 2008

      @rhettinger
      ContributorAuthor

      Jeffrey, do you have an interest in taking it from here?

    8. gvanrossum commented on Jun 17, 2008

      @gvanrossum
      Member

      Raymond, mind if we roll back your previous (incorrect) changes? They
      really should not have been submitted in the first place.

    9. rhettinger commented on Jun 17, 2008

      @rhettinger
      ContributorAuthor

      No problem. Whatever you think is best.

      Still hoping that Jeffrey can take a look at the mixin approach and the
      __rand__ logic. No one else seems to have an interest and I won't have
      time to write the tests for a few days (they are complicated because
      Integral requires so many abstract methods to be defined before it will
      instantiate).

    10. jyasskin commented on Jun 30, 2008

      jyasskinmannequin
      Mannequin

      Yeah, I'll take a look. Feel free to bug me if I haven't gotten to it in
      a couple more days.

    11. ezio-melotti commented on Jul 4, 2009

      @ezio-melotti
      Member

      Ping?

    12. rhettinger commented on Apr 13, 2011

      @rhettinger
      ContributorAuthor

      I've long since lost interest in this.
      If anyone wants to push it forward,
      feel free to re-open.

    13. python-dev commented on Apr 14, 2013

      python-devmannequin
      Mannequin

      New changeset 4678259af5a4 by Georg Brandl in branch '2.7':
      The Integral class does not contain implementations for the bit-shifting operations. (See bpo-3056.)
      http://hg.python.org/cpython/rev/4678259af5a4

      New changeset 1d4ba14cc505 by Georg Brandl in branch '3.3':
      The Integral class does not contain implementations for the bit-shifting operations. (See bpo-3056.)
      http://hg.python.org/cpython/rev/1d4ba14cc505

    14. 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

      stdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions