Commit d5886e90 authored by Matus Valo's avatar Matus Valo Committed by GitHub

docs: Change cast(...) -> cython.cast(...) in "language basics" examples (GH-4304)

parent 20f478a7
......@@ -916,7 +916,7 @@ Cython uses ``"<"`` and ``">"``. In pure python mode, the ``cython.cast()`` fun
def main():
p: cython.p_char
q: cython.p_float
p = cast(cython.p_char, q)
p = cython.cast(cython.p_char, q)
When casting a C value to a Python object type or vice versa,
Cython will attempt a coercion. Simple examples are casts like ``cast(int, pyobj_value)``,
......@@ -1043,7 +1043,7 @@ direct equivalent in Python.
p: cython.p_char
q: cython.p_float
p = cast(cython.p_char, q)
p = cython.cast(cython.p_char, q)
.. group-tab:: Cython
......
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