diff options
Diffstat (limited to 'docs/examples/tutorial/external/keyword_args_call.py')
-rw-r--r-- | docs/examples/tutorial/external/keyword_args_call.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/examples/tutorial/external/keyword_args_call.py b/docs/examples/tutorial/external/keyword_args_call.py new file mode 100644 index 000000000..b3b3f5049 --- /dev/null +++ b/docs/examples/tutorial/external/keyword_args_call.py @@ -0,0 +1,7 @@ +from cython.cimports.strstr import strstr + +def main(): + data: cython.p_char = "hfvcakdfagbcffvschvxcdfgccbcfhvgcsnfxjh" + + pos = strstr(needle='akd', haystack=data) + print(pos is not cython.NULL) |