From d5886e90b24052c42c61fe0a896cf94877318612 Mon Sep 17 00:00:00 2001 From: Matus Valo Date: Wed, 21 Jul 2021 10:30:15 +0200 Subject: docs: Change cast(...) -> cython.cast(...) in "language basics" examples (GH-4304) --- docs/src/userguide/language_basics.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/userguide/language_basics.rst b/docs/src/userguide/language_basics.rst index 6ccd7e804..99a9961e5 100644 --- a/docs/src/userguide/language_basics.rst +++ b/docs/src/userguide/language_basics.rst @@ -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 -- cgit v1.2.1