diff options
| author | scoder <stefan_ml@behnel.de> | 2018-06-20 06:47:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-20 06:47:15 +0200 |
| commit | cbdca7c2ef7b3807371752ffae3652fa9f5fcbc9 (patch) | |
| tree | 940c28797c2fc1f583dee42cb68d205c63a9a095 /docs/examples/tutorial/string | |
| parent | 285ca06368d111f9a3b025c0f45ed79722f18feb (diff) | |
| parent | da537165c57fa244bd857919819df75b49e162cc (diff) | |
| download | cython-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.pyx | 5 |
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]
+ # ...
|
