summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/string/for_bytes.pyx
blob: 1740ae236b184912d709cde26b8da38d6bf3e3a0 (plain)
1
2
3
4
5
6
cdef bytes bytes_string = b'hello world'

cdef char c
for c in bytes_string:
    if c == 'A':
        print("Found the letter A")