Commit 38f43caa authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Removed the code snippet entirely as it's not clear what it does.

parent 883b5c44
import cython
class A:
cython.declare(a=cython.int, b=cython.int)
def __init__(self, b=0):
self.a = 3
self.b = b
...@@ -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:
......
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