Commit c69b5aaa authored by Stefan Behnel's avatar Stefan Behnel

Document "@cython.final" decorator.

Closes #1858.
parent beac21ce
......@@ -285,6 +285,10 @@ Extension types and cdef functions
* ``@cython.inline`` is the equivalent of the C ``inline`` modifier.
* ``@cython.final`` terminates the inheritance chain by preventing a type from
being used as a base class, or a method from being overridden in subtypes.
This enables certain optimisations such as inlined method calls.
Here is an example of a :keyword:`cdef` function::
@cython.cfunc
......
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