From e62ddb3e61d04331c0d9b261d3cac2f8f048297d Mon Sep 17 00:00:00 2001 From: Nikhil Kumar Date: Thu, 31 Jul 2025 12:58:59 +0530 Subject: [PATCH] Clarify bytes.isalnum and bytearray.isalnum doc wording --- Doc/library/stdtypes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 90683c0b00d78a..b3e8d185075119 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -3641,8 +3641,8 @@ place, and instead produce new objects. .. method:: bytes.isalnum() bytearray.isalnum() - Return ``True`` if all bytes in the sequence are alphabetical ASCII characters - or ASCII decimal digits and the sequence is not empty, ``False`` otherwise. + Return ``True`` if all bytes in the sequence are alphabetic ASCII characters + and/or ASCII decimal digits and the sequence is not empty, ``False`` otherwise. Alphabetic ASCII characters are those byte values in the sequence ``b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'``. ASCII decimal digits are those byte values in the sequence ``b'0123456789'``.