summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-12-26 01:53:36 (GMT)
committerGitHub <noreply@github.com>2018-12-26 01:53:36 (GMT)
commit56edf3a4b145d80684a9e4ba7411a6778d830140 (patch)
treeb5dc8995f6702c9a89c504f22015335540183795 /Doc
parentb6af23ebf9d6667fa222e804f045735289b4527f (diff)
downloadcpython-56edf3a4b145d80684a9e4ba7411a6778d830140.zip
cpython-56edf3a4b145d80684a9e4ba7411a6778d830140.tar.gz
cpython-56edf3a4b145d80684a9e4ba7411a6778d830140.tar.bz2
Redo PR 785 -- Add cross reference links (GH-11319)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/binascii.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst
index a4efef8..89ecddc 100644
--- a/Doc/library/binascii.rst
+++ b/Doc/library/binascii.rst
@@ -152,6 +152,8 @@ The :mod:`binascii` module defines the following functions:
*data* is converted into the corresponding 2-digit hex representation. The
returned bytes object is therefore twice as long as the length of *data*.
+ Similar functionality (but returning a text string) is also conveniently
+ accessible using the :meth:`bytes.hex` method.
.. function:: a2b_hex(hexstr)
unhexlify(hexstr)
@@ -161,6 +163,9 @@ The :mod:`binascii` module defines the following functions:
of hexadecimal digits (which can be upper or lower case), otherwise an
:exc:`Error` exception is raised.
+ Similar functionality (accepting only text string arguments, but more
+ liberal towards whitespace) is also accessible using the
+ :meth:`bytes.fromhex` class method.
.. exception:: Error