summaryrefslogtreecommitdiffstats
path: root/Doc/library/stdtypes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r--Doc/library/stdtypes.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index a6260ec..7b3fa21 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2744,6 +2744,10 @@ data and are closely related to string objects in a variety of other ways.
:meth:`bytes.fromhex` now skips all ASCII whitespace in the string,
not just spaces.
+ .. versionchanged:: next
+ :meth:`bytes.fromhex` now accepts ASCII :class:`bytes` and
+ :term:`bytes-like objects <bytes-like object>` as input.
+
A reverse conversion function exists to transform a bytes object into its
hexadecimal representation.
@@ -2829,6 +2833,10 @@ objects.
:meth:`bytearray.fromhex` now skips all ASCII whitespace in the string,
not just spaces.
+ .. versionchanged:: next
+ :meth:`bytearray.fromhex` now accepts ASCII :class:`bytes` and
+ :term:`bytes-like objects <bytes-like object>` as input.
+
A reverse conversion function exists to transform a bytearray object into its
hexadecimal representation.