We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbd9251 commit 57aebe1Copy full SHA for 57aebe1
1 file changed
tests/basics/bytes.py
@@ -37,3 +37,9 @@
37
x = b"\xff\x8e\xfe}\xfd\x7f"
38
print(len(x))
39
print(x[0], x[1], x[2], x[3])
40
+
41
+# Make sure init values are not mistreated as unicode chars
42
+# For sequence of known len
43
+print(bytes([128, 255]))
44
+# For sequence of unknown len
45
+print(bytes(iter([128, 255])))
0 commit comments