From 2c32d093d07e6bbc8d6507cb5d06391ab6de8ea3 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 16 Jul 2021 16:12:43 +0200 Subject: [PATCH] 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. --- src/ubuiltins/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ubuiltins/__init__.py b/src/ubuiltins/__init__.py index 07b8187..78da4c6 100644 --- a/src/ubuiltins/__init__.py +++ b/src/ubuiltins/__init__.py @@ -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``. """