Skip to content

Commit 17e9ab6

Browse files
committed
Mention bytearray in docs and blurb
1 parent a86ca26 commit 17e9ab6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Doc/library/stdtypes.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,8 +2745,9 @@ data and are closely related to string objects in a variety of other ways.
27452745
not just spaces.
27462746

27472747
.. versionchanged:: next
2748-
:meth:`bytes.fromhex` now accepts an ASCII :class:`bytes` object as
2749-
input.
2748+
:meth:`bytes.fromhex` now accepts ASCII :class:`bytes` and
2749+
:class:`bytearray` objects as input.
2750+
27502751

27512752

27522753
A reverse conversion function exists to transform a bytes object into its
@@ -2835,8 +2836,8 @@ objects.
28352836
not just spaces.
28362837

28372838
.. versionchanged:: next
2838-
:meth:`bytearray.fromhex` now accepts an ASCII :class:`bytes` object as
2839-
input.
2839+
:meth:`bytearray.fromhex` now accepts ASCII :class:`bytes` and
2840+
:class:`bytearray` objects as input.
28402841

28412842
A reverse conversion function exists to transform a bytearray object into its
28422843
hexadecimal representation.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
:meth:`bytes.fromhex` and :meth:`bytearray.fromhex` now accepts ASCII
2-
:class:`bytes` objects.
2+
:class:`bytes`/:class:`bytearray` objects.

0 commit comments

Comments
 (0)