We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c38809e commit e5cff5bCopy full SHA for e5cff5b
1 file changed
tests/basics/bytearray1.py
@@ -31,3 +31,9 @@
31
print(bytearray() == 1)
32
33
# TODO: other comparisons
34
+
35
+# __contains__
36
+b = bytearray(b"\0foo\0")
37
+print(b"foo" in b)
38
+print(b"foo\x01" in b)
39
+print(b"" in b)
0 commit comments