Skip to content

functools.total_ordering fails to handle NotImplemented correctly #54251

@francescor

Description

@francescor
mannequin
BPO 10042
Nosy @rhettinger, @ncoghlan, @merwok, @regebro, @ethanfurman, @JimJJewett
Files
  • test_total_ordering.py: Example file
  • new_total_ordering.py: Possible solution of bug
  • sane_total_ordering.py: Rewrite of total_ordering that takes NotImplemented into account
  • new_total_ordering_notimplemented.py
  • new_total_ordering_overflow.py
  • 10042.patch: Patch with Nick's code from msg140493 and matching tests
  • 10042_new_total_ordering_with_tests.patch: New patch adding logic from Nick, Jim and some extra code improvements, plus more tests
  • 10042_revised.patch: Revised patch, including code changes and tests
  • issue10042_with_enum_updates.diff: Updated total_ordering with simplified OrderedEnum example
  • 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 = 'https://github.com/ncoghlan'
    closed_at = <Date 2013-10-01.14:02:25.456>
    created_at = <Date 2010-10-07.08:26:51.371>
    labels = ['type-feature', 'library']
    title = 'functools.total_ordering fails to handle NotImplemented correctly'
    updated_at = <Date 2014-03-10.22:11:23.398>
    user = 'https://bugs.python.org/francescor'

    bugs.python.org fields:

    activity = <Date 2014-03-10.22:11:23.398>
    actor = 'python-dev'
    assignee = 'ncoghlan'
    closed = True
    closed_date = <Date 2013-10-01.14:02:25.456>
    closer = 'python-dev'
    components = ['Library (Lib)']
    creation = <Date 2010-10-07.08:26:51.371>
    creator = 'francescor'
    dependencies = []
    files = ['19144', '19145', '21708', '21711', '21712', '30859', '30871', '30923', '31890']
    hgrepos = []
    issue_num = 10042
    keywords = ['patch']
    message_count = 52.0
    messages = ['118096', '118097', '118128', '125758', '126729', '128057', '131379', '131385', '133999', '134001', '134002', '134003', '134004', '134005', '134013', '134014', '134015', '134016', '134018', '134022', '134024', '134155', '134163', '134205', '140493', '140494', '142703', '151989', '192619', '192624', '192626', '192654', '192707', '192709', '192712', '192730', '192745', '192842', '192846', '192869', '193076', '193078', '198073', '198197', '198522', '198523', '198676', '198678', '198780', '198781', '198818', '213099']
    nosy_count = 12.0
    nosy_names = ['rhettinger', 'ncoghlan', 'eric.araujo', 'lregebro', 'francescor', 'ethan.furman', 'catalin.iacob', 'python-dev', 'javawizard', 'Jim.Jewett', 'Drekin', 'codemiller']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue10042'
    versions = ['Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions