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
c6c921a4
Commit
c6c921a4
authored
Jan 26, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py_AtExit(): Added brief note about the constraint on cleanup functions not
calling the Python API.
parent
25f1722d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
Doc/api.tex
Doc/api.tex
+9
-6
Doc/api/api.tex
Doc/api/api.tex
+9
-6
No files found.
Doc/api.tex
View file @
c6c921a4
...
...
@@ -542,12 +542,15 @@ calls the standard \C{} library function \code{exit(0)}.
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
Py
_
AtExit
}{
void (*func) ()
}
Register a cleanup function to be called by
\code
{
Py
_
Finalize()
}
. The
cleanup function will be called with no arguments and should return no
value. At most 32 cleanup functions can be registered. When the
registration is successful,
\code
{
Py
_
AtExit
}
returns 0; on failure, it
returns -1. The cleanup function registered last is called first.
Each cleanup function will be called at most once.
Register a cleanup function to be called by
\cfunction
{
Py
_
Finalize()
}
.
The cleanup function will be called with no arguments and should
return no value. At most 32 cleanup functions can be registered.
When the registration is successful,
\cfunction
{
Py
_
AtExit()
}
returns
\code
{
0
}
; on failure, it returns
\code
{
-1
}
. The cleanup function
registered last is called first. Each cleanup function will be called
at most once. Since Python's internal finallization will have
completed before the cleanup function, no Python APIs should be called
by
\var
{
func
}
.
\end{cfuncdesc}
...
...
Doc/api/api.tex
View file @
c6c921a4
...
...
@@ -542,12 +542,15 @@ calls the standard \C{} library function \code{exit(0)}.
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
Py
_
AtExit
}{
void (*func) ()
}
Register a cleanup function to be called by
\code
{
Py
_
Finalize()
}
. The
cleanup function will be called with no arguments and should return no
value. At most 32 cleanup functions can be registered. When the
registration is successful,
\code
{
Py
_
AtExit
}
returns 0; on failure, it
returns -1. The cleanup function registered last is called first.
Each cleanup function will be called at most once.
Register a cleanup function to be called by
\cfunction
{
Py
_
Finalize()
}
.
The cleanup function will be called with no arguments and should
return no value. At most 32 cleanup functions can be registered.
When the registration is successful,
\cfunction
{
Py
_
AtExit()
}
returns
\code
{
0
}
; on failure, it returns
\code
{
-1
}
. The cleanup function
registered last is called first. Each cleanup function will be called
at most once. Since Python's internal finallization will have
completed before the cleanup function, no Python APIs should be called
by
\var
{
func
}
.
\end{cfuncdesc}
...
...
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