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
38f43caa
Commit
38f43caa
authored
Jun 15, 2018
by
gabrieldemarmiesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the code snippet entirely as it's not clear what it does.
parent
883b5c44
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
docs/examples/tutorial/pure/class_constructor.py
docs/examples/tutorial/pure/class_constructor.py
+0
-8
docs/src/tutorial/pure.rst
docs/src/tutorial/pure.rst
+1
-5
No files found.
docs/examples/tutorial/pure/class_constructor.py
deleted
100644 → 0
View file @
883b5c44
import
cython
class
A
:
cython
.
declare
(
a
=
cython
.
int
,
b
=
cython
.
int
)
def
__init__
(
self
,
b
=
0
):
self
.
a
=
3
self
.
b
=
b
docs/src/tutorial/pure.rst
View file @
38f43caa
...
@@ -168,11 +168,7 @@ Static typing
...
@@ -168,11 +168,7 @@ Static typing
cython.declare(x=cython.int, y=cython.double) # cdef int x; cdef double y
cython.declare(x=cython.int, y=cython.double) # cdef int x; cdef double y
It can also be used to type class constructors:
It can also be used to define extension type private, readonly and public attributes::
.. literalinclude:: ../../examples/tutorial/pure/class_constructor.py
And even to define extension type private, readonly and public attributes::
@cython.cclass
@cython.cclass
class A:
class A:
...
...
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