summaryrefslogtreecommitdiff
path: root/docs/src/tutorial/pure.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/tutorial/pure.rst')
-rw-r--r--docs/src/tutorial/pure.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/tutorial/pure.rst b/docs/src/tutorial/pure.rst
index 86e62a9d3..f31821d1f 100644
--- a/docs/src/tutorial/pure.rst
+++ b/docs/src/tutorial/pure.rst
@@ -243,6 +243,13 @@ Further Cython functions and declarations
print(cython.sizeof(cython.longlong))
print(cython.sizeof(n))
+* ``typeof`` returns a string representation of the argument's type for debugging purposes. It can take expressions.
+
+ ::
+
+ cython.declare(n=cython.longlong)
+ print(cython.typeof(n))
+
* ``struct`` can be used to create struct types.::
MyStruct = cython.struct(x=cython.int, y=cython.int, data=cython.double)