Skip to content

Conversion of longs to bytes and vice-versa. #40877

@josiahcarlson

Description

@josiahcarlson
BPO 1023290
Nosy @mwhudson, @tim-one, @loewis, @rhettinger, @josiahcarlson, @etrepum, @mdickinson, @pitrou, @avassalotti, @briancurtin
Dependencies
  • bpo-6687: Move the special-case for integer objects out of PyBytes_FromObject.
  • Files
  • structmodule_diff.txt: Diff to structmodule.c to add support.
  • long_and_bytes_conversion.diff: Patch for Python 3.x
  • long_and_bytes_conversion-2.diff
  • long_and_bytes_conversion-3.diff
  • 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 2010-04-03.11:44:17.012>
    created_at = <Date 2004-09-06.20:42:10.000>
    labels = ['interpreter-core', 'type-feature', 'library']
    title = 'Conversion of longs to bytes and vice-versa.'
    updated_at = <Date 2010-04-03.11:44:17.010>
    user = 'https://github.com/josiahcarlson'

    bugs.python.org fields:

    activity = <Date 2010-04-03.11:44:17.010>
    actor = 'mark.dickinson'
    assignee = 'mark.dickinson'
    closed = True
    closed_date = <Date 2010-04-03.11:44:17.012>
    closer = 'mark.dickinson'
    components = ['Interpreter Core', 'Library (Lib)']
    creation = <Date 2004-09-06.20:42:10.000>
    creator = 'josiahcarlson'
    dependencies = ['6687']
    files = ['8245', '14695', '14739', '15333']
    hgrepos = []
    issue_num = 1023290
    keywords = ['patch']
    message_count = 50.0
    messages = ['54238', '54239', '54240', '54241', '54242', '54243', '54244', '54245', '54246', '54247', '54248', '54249', '54250', '54251', '54252', '54253', '54254', '54255', '54256', '54257', '54258', '54259', '54260', '54261', '54262', '60065', '60135', '67955', '67983', '69285', '91487', '91602', '91603', '91604', '91616', '91669', '91672', '91673', '92069', '95258', '95730', '95734', '95735', '97469', '97588', '99314', '99321', '99329', '102157', '102241']
    nosy_count = 11.0
    nosy_names = ['mwh', 'tim.peters', 'loewis', 'rhettinger', 'josiahcarlson', 'bob.ippolito', 'mark.dickinson', 'pitrou', 'alexandre.vassalotti', 'ede', 'brian.curtin']
    pr_nums = []
    priority = 'high'
    resolution = 'accepted'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1023290'
    versions = ['Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)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