python / cpython

The Python programming language
https://www.python.org
Other
62.83k stars 30.09k forks source link

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

Closed ef6b2a61-f027-4805-a66a-cde4eee277c3 closed 14 years ago

ef6b2a61-f027-4805-a66a-cde4eee277c3 commented 20 years ago
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: ```python assignee = 'https://github.com/mdickinson' closed_at = created_at = labels = ['interpreter-core', 'type-feature', 'library'] title = 'Conversion of longs to bytes and vice-versa.' updated_at = user = 'https://github.com/josiahcarlson' ``` bugs.python.org fields: ```python activity = actor = 'mark.dickinson' assignee = 'mark.dickinson' closed = True closed_date = closer = 'mark.dickinson' components = ['Interpreter Core', 'Library (Lib)'] creation = 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'] ```