Skip to content

Add a macro to ease writing rich comparisons #67887

@encukou

Description

@encukou
BPO 23699
Nosy @malemburg, @warsaw, @rhettinger, @ncoghlan, @benjaminp, @encukou, @skrah, @serhiy-storchaka, @stratakis
PRs
  • bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions #793
  • Files
  • 0001-Define-Py_RICHCOMPARE-to-ease-writing-rich-compariso.patch: Patch adding the Py_RICHCOMPARE macro
  • 0002-Use-Py_RICHCOMPARE-in-rich-comparisons.patch
  • 0002-Use-Py_RICHCOMPARE-in-rich-comparisons.patch: Patch adding the Py_RICHCOMPARE macro, v. 2
  • Use-a-macro-to-reduce-boilerplate-in-rich-comparison.patch
  • richcompare-macro-badargument.patch
  • 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 2017-11-02.10:33:57.218>
    created_at = <Date 2015-03-18.13:43:22.222>
    labels = ['interpreter-core', 'type-feature', '3.7']
    title = 'Add a macro to ease writing rich comparisons'
    updated_at = <Date 2017-11-02.10:33:57.218>
    user = 'https://github.com/encukou'

    bugs.python.org fields:

    activity = <Date 2017-11-02.10:33:57.218>
    actor = 'ncoghlan'
    assignee = 'ncoghlan'
    closed = True
    closed_date = <Date 2017-11-02.10:33:57.218>
    closer = 'ncoghlan'
    components = ['Interpreter Core']
    creation = <Date 2015-03-18.13:43:22.222>
    creator = 'petr.viktorin'
    dependencies = []
    files = ['38541', '38542', '38605', '38657', '39455']
    hgrepos = []
    issue_num = 23699
    keywords = ['patch']
    message_count = 36.0
    messages = ['238441', '238443', '238454', '238457', '238461', '238658', '238673', '238674', '238681', '239042', '241861', '243095', '243108', '243116', '243120', '243176', '243179', '243183', '243264', '243271', '243479', '243480', '243481', '243485', '243665', '243707', '243748', '243764', '243836', '290055', '294734', '304821', '304863', '304884', '304962', '305412']
    nosy_count = 9.0
    nosy_names = ['lemburg', 'barry', 'rhettinger', 'ncoghlan', 'benjamin.peterson', 'petr.viktorin', 'skrah', 'serhiy.storchaka', 'cstratak']
    pr_nums = ['793']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue23699'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions