summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/string/for_unicode.pyx
blob: 0f8ab0c7db5f86595486f9d65773201af3c1e27a (plain)
1
2
3
4
5
6
cdef unicode ustring = u'Hello world'

# NOTE: no typing required for 'uchar' !
for uchar in ustring:
    if uchar == u'A':
        print("Found the letter A")