summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/string
diff options
context:
space:
mode:
authorscoder <stefan_ml@behnel.de>2018-06-20 06:47:15 +0200
committerGitHub <noreply@github.com>2018-06-20 06:47:15 +0200
commitcbdca7c2ef7b3807371752ffae3652fa9f5fcbc9 (patch)
tree940c28797c2fc1f583dee42cb68d205c63a9a095 /docs/examples/tutorial/string
parent285ca06368d111f9a3b025c0f45ed79722f18feb (diff)
parentda537165c57fa244bd857919819df75b49e162cc (diff)
downloadcython-cbdca7c2ef7b3807371752ffae3652fa9f5fcbc9.tar.gz
Merge pull request #2377 from gabrieldemarmiesse/test_string_3
Adding tests for "Unicode and passing strings" part 3
Diffstat (limited to 'docs/examples/tutorial/string')
-rw-r--r--docs/examples/tutorial/string/arg_memview.pyx5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/examples/tutorial/string/arg_memview.pyx b/docs/examples/tutorial/string/arg_memview.pyx
new file mode 100644
index 000000000..63a18f943
--- /dev/null
+++ b/docs/examples/tutorial/string/arg_memview.pyx
@@ -0,0 +1,5 @@
+def process_byte_data(unsigned char[:] data):
+ length = data.shape[0]
+ first_byte = data[0]
+ slice_view = data[1:-1]
+ # ...