summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/extension_types/python_access.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/userguide/extension_types/python_access.py')
-rw-r--r--docs/examples/userguide/extension_types/python_access.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/examples/userguide/extension_types/python_access.py b/docs/examples/userguide/extension_types/python_access.py
new file mode 100644
index 000000000..27478f50c
--- /dev/null
+++ b/docs/examples/userguide/extension_types/python_access.py
@@ -0,0 +1,7 @@
+import cython
+
+@cython.cclass
+class Shrubbery:
+ width = cython.declare(cython.int, visibility='public')
+ height = cython.declare(cython.int, visibility='public')
+ depth = cython.declare(cython.float, visibility='readonly')