ubuiltins.bytes: Clarify range up to 255.

Be consistent and use <= for both. A bit more intuitive because the number 256 cannot be used in bytes objects.
This commit is contained in:
Laurens Valk
2021-07-16 16:12:43 +02:00
parent ba6d7ac3f5
commit 2c32d093d0
+2 -2
View File
@@ -138,8 +138,8 @@ class bytes:
def __init__(self, *args):
"""
Returns a new bytes object, which is an immutable sequence of integers
in the range ``0 <= x < 256``.
Returns a new ``bytes`` object, which is an immutable sequence of integers
in the range ``0 <= x <= 255``.
"""