Merge #19411: Clarify that b2a_hex/hexlify returns a bytes object.
This commit is contained in:
commit
c3f57e4a35
|
@ -145,7 +145,7 @@ The :mod:`binascii` module defines the following functions:
|
||||||
|
|
||||||
Return the hexadecimal representation of the binary *data*. Every byte of
|
Return the hexadecimal representation of the binary *data*. Every byte of
|
||||||
*data* is converted into the corresponding 2-digit hex representation. The
|
*data* is converted into the corresponding 2-digit hex representation. The
|
||||||
resulting string is therefore twice as long as the length of *data*.
|
returned bytes object is therefore twice as long as the length of *data*.
|
||||||
|
|
||||||
|
|
||||||
.. function:: a2b_hex(hexstr)
|
.. function:: a2b_hex(hexstr)
|
||||||
|
|
|
@ -1122,7 +1122,8 @@ binascii_hexlify(PyObject *self, PyObject *args)
|
||||||
PyDoc_STRVAR(doc_hexlify,
|
PyDoc_STRVAR(doc_hexlify,
|
||||||
"b2a_hex(data) -> s; Hexadecimal representation of binary data.\n\
|
"b2a_hex(data) -> s; Hexadecimal representation of binary data.\n\
|
||||||
\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
|
static int
|
||||||
|
|
Loading…
Reference in New Issue