Commit c4774219 authored by 0dminnimda's avatar 0dminnimda Committed by GitHub

Document `typeof` in pure.rst (GH-4301)

parent d833d432
......@@ -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)
......
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