Skip to content

int.from_bytes() is broken for subclasses #67828

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 23640
Nosy @warsaw, @rhettinger, @facundobatista, @mdickinson, @vstinner, @bitdancer, @skrah, @ethanfurman, @eltoder, @serhiy-storchaka
Files
  • issue23640.stoneleaf.01.patch
  • 0001-int.from_bytes-calls-constructor-for-subclasses.patch
  • 0002-int.from_bytes-calls-constructor-for-subclasses.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/serhiy-storchaka'
    closed_at = <Date 2016-05-12.07:49:10.222>
    created_at = <Date 2015-03-11.13:34:36.466>
    labels = ['interpreter-core', 'type-bug']
    title = 'int.from_bytes() is broken for subclasses'
    updated_at = <Date 2016-05-12.12:23:16.965>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2016-05-12.12:23:16.965>
    actor = 'pitrou'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2016-05-12.07:49:10.222>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2015-03-11.13:34:36.466>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['38444', '38447', '40606']
    hgrepos = []
    issue_num = 23640
    keywords = ['patch']
    message_count = 24.0
    messages = ['237864', '237881', '237887', '237888', '237891', '237896', '239619', '239622', '240053', '240065', '240085', '251750', '251751', '251833', '251863', '252091', '252092', '265104', '265334', '265352', '265355', '265372', '265373', '265397']
    nosy_count = 16.0
    nosy_names = ['barry', 'rhettinger', 'facundobatista', 'mark.dickinson', 'vstinner', 'Arfrever', 'r.david.murray', 'eli.bendersky', 'skrah', 'ethan.furman', 'python-dev', 'eltoder', 'serhiy.storchaka', 'bru', 'juggernaut', 'iyogeshjoshi']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23640'
    versions = ['Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Labels

    interpreter-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