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
98605b54
Commit
98605b54
authored
Apr 10, 2000
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
document PyErr_Format
parent
0682be45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Doc/api/api.tex
Doc/api/api.tex
+11
-0
Doc/api/refcounts.dat
Doc/api/refcounts.dat
+5
-0
No files found.
Doc/api/api.tex
View file @
98605b54
...
...
@@ -858,6 +858,17 @@ specify an arbitrary Python object for the ``value'' of the exception.
You need not increment its reference count.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyErr
_
Format
}{
PyObject *exception, const char *format, ...
}
This function sets the error indicator using a printf-style format
string. The first argument specifies the exception type and the
second argument specifies the format string for the exception. Any
subsequent arguments are converted to output by the C library's
\cfunction
{
vsprintf()
}
function. The buffer used internally by
PyErr
_
Format is 500 bytes long. The caller is responsible for
guaranteeing that the formatted output does not overflow the buffer.
The return value is always
\NULL
{}
.
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyErr
_
SetNone
}{
PyObject *type
}
This is a shorthand for
\samp
{
PyErr
_
SetObject(
\var
{
type
}
, Py
_
None)
}
.
\end{cfuncdesc}
...
...
Doc/api/refcounts.dat
View file @
98605b54
...
...
@@ -194,6 +194,11 @@ PyErr_SetString:void:::
PyErr_SetString:PyObject*:type:+1:
PyErr_SetString:char*:message::
PyErr_Format:PyObject*::null:
PyErr_Format:PyObject*:exception:+1:
PyErr_Format:char*:format::
PyErr_Format::...::
PyEval_AcquireLock:void:::
PyEval_AcquireThread:void:::
...
...
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