From 1f43c813841239cb5f7cb5480ea93a3b7b401152 Mon Sep 17 00:00:00 2001 From: Joshix Date: Wed, 27 May 2026 20:00:00 +0000 Subject: [PATCH 1/2] gh-150524: Fix note in `binascii.a2b_hex` documentation `bytes.fromhex` accepts ASCII bytes and bytes-like objects as input since 3.14 --- Doc/library/binascii.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst index 60afe9261d51fa..9b8a2fa2fd8cfc 100644 --- a/Doc/library/binascii.rst +++ b/Doc/library/binascii.rst @@ -367,9 +367,8 @@ The :mod:`!binascii` module defines the following functions: *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input. - Similar functionality (accepting only text string arguments, but more - liberal towards whitespace) is also accessible using the - :meth:`bytes.fromhex` class method. + Similar functionality (more liberal towards whitespace) is also accessible + using the :meth:`bytes.fromhex` class method. .. versionchanged:: 3.15 Added the *ignorechars* parameter. From 4179ee810d8c1a5267a70ea90ff761a89f626c9e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 30 May 2026 22:10:38 +0300 Subject: [PATCH 2/2] Update Doc/library/binascii.rst Co-authored-by: Pieter Eendebak --- Doc/library/binascii.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst index 9b8a2fa2fd8cfc..ceb80a35a1a76b 100644 --- a/Doc/library/binascii.rst +++ b/Doc/library/binascii.rst @@ -367,7 +367,7 @@ The :mod:`!binascii` module defines the following functions: *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input. - Similar functionality (more liberal towards whitespace) is also accessible + Similar functionality (but more liberal towards whitespace) is also accessible using the :meth:`bytes.fromhex` class method. .. versionchanged:: 3.15