DEBSOURCES
Skip Quicknav
sources / cython / 3.1.6%2Bdfsg-2 / docs / examples / tutorial / string / for_char.pyx
1234567
def iterate_char(): cdef char* c_string = "Hello to A C-string's world" cdef char c for c in c_string[:11]: if c == b'A': print("Found the letter A")