Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
d5886e90
Commit
d5886e90
authored
3 years ago
by
Matus Valo
Committed by
GitHub
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Change cast(...) -> cython.cast(...) in "language basics" examples (GH-4304)
parent
20f478a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/src/userguide/language_basics.rst
docs/src/userguide/language_basics.rst
+2
-2
No files found.
docs/src/userguide/language_basics.rst
View file @
d5886e90
...
...
@@ -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 = c
ython.c
ast(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 = c
ython.c
ast(cython.p_char, q)
.. group-tab:: Cython
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment