Commit d88c784a authored by scoder's avatar scoder Committed by GitHub

Merge pull request #2338 from gabrieldemarmiesse/pure_python_mode_5

Adding tests for "pure python mode" part 5
parents aff9e06f 38f43caa
......@@ -130,15 +130,7 @@ Static typing
.. literalinclude:: ../../examples/tutorial/pure/cython_declare2.py
It can also be used to type class constructors::
class A:
cython.declare(a=cython.int, b=cython.int)
def __init__(self, b=0):
self.a = 3
self.b = b
And even to define extension type private, readonly and public attributes::
It can also be used to define extension type private, readonly and public attributes::
@cython.cclass
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