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
04988898
Commit
04988898
authored
Oct 04, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: fix typos, minor clarification.
parent
737152fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/src/userguide/language_basics.rst
docs/src/userguide/language_basics.rst
+3
-3
No files found.
docs/src/userguide/language_basics.rst
View file @
04988898
...
...
@@ -357,7 +357,7 @@ Error return values
In Python (more specifically, in the CPython runtime), exceptions that occur
inside of a function are signaled to the caller and propagated up the call stack
through defined error return values. For functions that return Python object
through defined error return values. For functions that return
a
Python object
(and thus, a pointer to such an object), the error return value is simply the
``NULL`` pointer, so any function returning a Python object has a well-defined
error return value.
...
...
@@ -378,7 +378,7 @@ Here is an example::
With this declaration, whenever an exception occurs inside ``spam``, it will
immediately return with the value ``-1``. From the caller's side, whenever
a call to spam returns ``-1``, the c
la
ler will assume that an exception has
a call to spam returns ``-1``, the c
al
ler will assume that an exception has
occurred and can now process or propagate it.
When you declare an exception value for a function, you should never explicitly
...
...
@@ -422,7 +422,7 @@ See :ref:`wrapping-cplusplus` for more details.
Some things to note:
* Exception values can only be declared for functions returning a
n
integer,
* Exception values can only be declared for functions returning a
C
integer,
enum, float or pointer type, and the value must be a constant expression.
Functions that return ``void``, or a struct/union by value, can only use
the ``except *`` form.
...
...
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