Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ad41d0ef
Commit
ad41d0ef
authored
Nov 03, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19411: Clarify that b2a_hex/hexlify returns a bytes object.
Initial patch by Vajrasky Kok.
parent
04fecfd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Doc/library/binascii.rst
Doc/library/binascii.rst
+1
-1
Modules/binascii.c
Modules/binascii.c
+2
-1
No files found.
Doc/library/binascii.rst
View file @
ad41d0ef
...
...
@@ -145,7 +145,7 @@ The :mod:`binascii` module defines the following functions:
Return the hexadecimal representation of the binary *data*. Every byte of
*data* is converted into the corresponding 2-digit hex representation. The
re
sulting string
is therefore twice as long as the length of *data*.
re
turned bytes object
is therefore twice as long as the length of *data*.
.. function:: a2b_hex(hexstr)
...
...
Modules/binascii.c
View file @
ad41d0ef
...
...
@@ -1129,7 +1129,8 @@ binascii_hexlify(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
doc_hexlify
,
"b2a_hex(data) -> s; Hexadecimal representation of binary data.
\n
\
\n
\
This function is also available as
\"
hexlify()
\"
."
);
The return value is a bytes object. This function is also
\n
\
available as
\"
hexlify()
\"
."
);
static
int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment