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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
cdbd7923
Commit
cdbd7923
authored
Mar 21, 2020
by
da-woods
Committed by
GitHub
Mar 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated documentation of multiple inheritence rules (GH-3422)
Original change
https://github.com/cython/cython/pull/1927
parent
bffa63bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
docs/src/userguide/extension_types.rst
docs/src/userguide/extension_types.rst
+5
-2
No files found.
docs/src/userguide/extension_types.rst
View file @
cdbd7923
...
...
@@ -327,7 +327,8 @@ when it is deleted.::
Subclassing
=============
An extension type may inherit from a built-in type or another extension type::
If an extension type inherits from other types, the first base class must be
a built-in type or another extension type::
cdef class Parrot:
...
...
...
@@ -342,7 +343,9 @@ extern extension type. If the base type is defined in another Cython module, it
must either be declared as an extern extension type or imported using the
:keyword:`cimport` statement.
An extension type can only have one base class (no multiple inheritance).
Multiple inheritance is supported, however the second and subsequent base
classes must be an ordinary Python class (not an extension type or a built-in
type).
Cython extension types can also be subclassed in Python. A Python class can
inherit from multiple extension types provided that the usual Python rules for
...
...
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