[issue19411] binascii.hexlify docs say it returns a string (it returns bytes)

New submission from Devin Jeanpierre: http://docs.python.org/3.4/library/binascii.html#binascii.hexlify ---------- assignee: docs@python components: Documentation messages: 201376 nosy: Devin Jeanpierre, docs@python priority: normal severity: normal status: open title: binascii.hexlify docs say it returns a string (it returns bytes) versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Changes by R. David Murray <rdmurray@bitdance.com>: ---------- nosy: +r.david.murray _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Changes by Antoine Pitrou <pitrou@free.fr>: ---------- stage: -> needs patch versions: -Python 3.1, Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Changes by Martin Panter <vadmium+py@gmail.com>: ---------- nosy: +vadmium _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Vajrasky Kok added the comment: Attached the patch to fix the doc. I also fix the module doc because I think bytes and str data types are matter of life and death in this binascii module. ---------- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file32459/fix_doc_binascii.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Roundup Robot added the comment: New changeset 25d89a4faede by R David Murray in branch '3.3': #19411: Clarify that b2a_hex/hexlify returns a bytes object. http://hg.python.org/cpython/rev/25d89a4faede New changeset ac190d03aed5 by R David Murray in branch 'default': Merge #19411: Clarify that b2a_hex/hexlify returns a bytes object. http://hg.python.org/cpython/rev/ac190d03aed5 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

R. David Murray added the comment: Thanks, Vajrasky. I modified the patch slightly since I prefer the term "bytes object" to just "bytes" (I think it reads better in English). ---------- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Changes by R. David Murray <rdmurray@bitdance.com>: ---------- nosy: +r.david.murray _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Changes by Antoine Pitrou <pitrou@free.fr>: ---------- stage: -> needs patch versions: -Python 3.1, Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Changes by Martin Panter <vadmium+py@gmail.com>: ---------- nosy: +vadmium _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Vajrasky Kok added the comment: Attached the patch to fix the doc. I also fix the module doc because I think bytes and str data types are matter of life and death in this binascii module. ---------- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file32459/fix_doc_binascii.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

Roundup Robot added the comment: New changeset 25d89a4faede by R David Murray in branch '3.3': #19411: Clarify that b2a_hex/hexlify returns a bytes object. http://hg.python.org/cpython/rev/25d89a4faede New changeset ac190d03aed5 by R David Murray in branch 'default': Merge #19411: Clarify that b2a_hex/hexlify returns a bytes object. http://hg.python.org/cpython/rev/ac190d03aed5 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________

R. David Murray added the comment: Thanks, Vajrasky. I modified the patch slightly since I prefer the term "bytes object" to just "bytes" (I think it reads better in English). ---------- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19411> _______________________________________
participants (6)
-
Antoine Pitrou
-
Devin Jeanpierre
-
Martin Panter
-
R. David Murray
-
Roundup Robot
-
Vajrasky Kok