Skip to content

Difference in equality check between C and Python implementation for datetime module's timedelta and time #81760

@tirkarthi

Description

@tirkarthi
BPO 37579
Nosy @abalkin, @serhiy-storchaka, @pganssle, @miss-islington, @tirkarthi
PRs
  • bpo-37579: Return NotImplemented in Python implementation of __eq__ to match C implementation of datetime for timedelta and time #14726
  • [3.8] bpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726) #14743
  • [3.7] bpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726) #14745
  • 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 2019-07-14.10:04:38.808>
    created_at = <Date 2019-07-13.05:25:41.676>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = "Difference in equality check between C and Python implementation for datetime module's timedelta and time"
    updated_at = <Date 2019-07-25.21:16:37.867>
    user = 'https://github.com/tirkarthi'

    bugs.python.org fields:

    activity = <Date 2019-07-25.21:16:37.867>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-07-14.10:04:38.808>
    closer = 'p-ganssle'
    components = ['Library (Lib)']
    creation = <Date 2019-07-13.05:25:41.676>
    creator = 'xtreak'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37579
    keywords = ['patch']
    message_count = 6.0
    messages = ['347773', '347813', '347815', '347821', '347903', '348454']
    nosy_count = 5.0
    nosy_names = ['belopolsky', 'serhiy.storchaka', 'p-ganssle', 'miss-islington', 'xtreak']
    pr_nums = ['14726', '14743', '14745']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37579'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions