Skip to content

complex() on object with __complex__ function loses sign of zero imaginary part #73788

@TomKrauss

Description

@TomKrauss
mannequin
BPO 29602
Nosy @arigo, @mdickinson, @vstinner, @stevendaprano, @serhiy-storchaka
PRs
  • bpo-29602: fix signed zero handling in complex constructor. #203
  • bpo-29602: fix signed zero handling in complex constructor #204
  • bpo-29602: fix signed zero handling in complex constructor #205
  • bpo-29602: fix signed zero handling in complex constructor #206
  • [Do Not Merge] Sample of CPython life with blurb. #703
  • [Do Not Merge] Convert Misc/NEWS so that it is managed by towncrier #552
  • Files
  • complex-constructor-from-complex.patch
  • complex-constructor-from-complex2.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/mdickinson'
    closed_at = <Date 2017-02-20.22:04:35.292>
    created_at = <Date 2017-02-20.00:49:52.052>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'complex() on object with __complex__ function loses sign of zero imaginary part'
    updated_at = <Date 2017-03-31.16:36:13.628>
    user = 'https://bugs.python.org/TomKrauss'

    bugs.python.org fields:

    activity = <Date 2017-03-31.16:36:13.628>
    actor = 'dstufft'
    assignee = 'mark.dickinson'
    closed = True
    closed_date = <Date 2017-02-20.22:04:35.292>
    closer = 'mark.dickinson'
    components = ['Interpreter Core']
    creation = <Date 2017-02-20.00:49:52.052>
    creator = 'Tom Krauss'
    dependencies = []
    files = ['46653', '46654']
    hgrepos = []
    issue_num = 29602
    keywords = ['patch']
    message_count = 20.0
    messages = ['288177', '288192', '288196', '288205', '288207', '288208', '288210', '288211', '288212', '288223', '288224', '288229', '288231', '288233', '288236', '288240', '288242', '288245', '288246', '288247']
    nosy_count = 6.0
    nosy_names = ['arigo', 'mark.dickinson', 'vstinner', 'steven.daprano', 'serhiy.storchaka', 'Tom Krauss']
    pr_nums = ['203', '204', '205', '206', '703', '552']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29602'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions