Commit ee2b2007 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #332 from maciejkula/document_memoryview_checks

Document `initializedcheck` compiler directive.
parents 2871491b 9ecaba0e
...@@ -292,6 +292,12 @@ Cython code. Here is the list of currently supported directives: ...@@ -292,6 +292,12 @@ Cython code. Here is the list of currently supported directives:
data corruption. data corruption.
Default is True. Default is True.
``initializedcheck`` (True / False)
If set to True, Cython checks that a memoryview is initialized
whenever its elements are accessed or assigned to. Setting this
to False disables these checks.
Default is True.
``nonecheck`` (True / False) ``nonecheck`` (True / False)
If set to False, Cython is free to assume that native field If set to False, Cython is free to assume that native field
accesses on variables typed as an extension type, or buffer accesses on variables typed as an extension type, or buffer
......
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