Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d0b0e1d8
Commit
d0b0e1d8
authored
Oct 15, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#6798: fix wrong docs for the arguments to several trace events.
parent
d2413428
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
Doc/c-api/init.rst
Doc/c-api/init.rst
+5
-4
Doc/library/sys.rst
Doc/library/sys.rst
+5
-4
No files found.
Doc/c-api/init.rst
View file @
d0b0e1d8
...
...
@@ -929,13 +929,14 @@ Python-level trace functions in previous versions.
+------------------------------+--------------------------------------+
| :const:`PyTrace_LINE` | Always *NULL*. |
+------------------------------+--------------------------------------+
| :const:`PyTrace_RETURN` | Value being returned to the caller. |
| :const:`PyTrace_RETURN` | Value being returned to the caller, |
| | or *NULL* if caused by an exception. |
+------------------------------+--------------------------------------+
| :const:`PyTrace_C_CALL` |
Name of function being called.
|
| :const:`PyTrace_C_CALL` |
Function object being called.
|
+------------------------------+--------------------------------------+
| :const:`PyTrace_C_EXCEPTION` |
Always *NULL*.
|
| :const:`PyTrace_C_EXCEPTION` |
Function object being called.
|
+------------------------------+--------------------------------------+
| :const:`PyTrace_C_RETURN` |
Always *NULL*.
|
| :const:`PyTrace_C_RETURN` |
Function object being called.
|
+------------------------------+--------------------------------------+
...
...
Doc/library/sys.rst
View file @
d0b0e1d8
...
...
@@ -806,8 +806,9 @@ always available.
``'return'``
A function (or other code block) is about to return. The local trace
function is called; *arg* is the value that will be returned. The trace
function's return value is ignored.
function is called; *arg* is the value that will be returned, or ``None``
if the event is caused by an exception being raised. The trace function's
return value is ignored.
``'exception'``
An exception has occurred. The local trace function is called; *arg* is a
...
...
@@ -819,10 +820,10 @@ always available.
a built-in. *arg* is the C function object.
``'c_return'``
A C function has returned. *arg* is
``None``
.
A C function has returned. *arg* is
the C function object
.
``'c_exception'``
A C function has raised an exception. *arg* is
``None``
.
A C function has raised an exception. *arg* is
the C function object
.
Note that as an exception is propagated down the chain of callers, an
``'exception'`` event is generated at each level.
...
...
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