Commit 9d0df4a8 authored by Xavier Thompson's avatar Xavier Thompson

Add hash.pyx demo

parent 1899ec28
from stdlib.string cimport Str
from libc.stdio cimport printf
def main():
with nogil:
s = Str('hello')
h = s.__hash__()
printf("hash: %lu\n", h)
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment