Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
c69b5aaa
Commit
c69b5aaa
authored
7 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document "@cython.final" decorator.
Closes #1858.
parent
beac21ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
docs/src/tutorial/pure.rst
docs/src/tutorial/pure.rst
+4
-0
No files found.
docs/src/tutorial/pure.rst
View file @
c69b5aaa
...
@@ -285,6 +285,10 @@ Extension types and cdef functions
...
@@ -285,6 +285,10 @@ Extension types and cdef functions
* ``@cython.inline`` is the equivalent of the C ``inline`` modifier.
* ``@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::
Here is an example of a :keyword:`cdef` function::
@cython.cfunc
@cython.cfunc
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment