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
05b871c8
Commit
05b871c8
authored
Jul 13, 2000
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document PyObject_AsFileDescriptor
parent
2acac26b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Doc/api/api.tex
Doc/api/api.tex
+7
-0
Doc/api/refcounts.dat
Doc/api/refcounts.dat
+3
-0
No files found.
Doc/api/api.tex
View file @
05b871c8
...
...
@@ -1419,6 +1419,13 @@ failure. This is the equivalent of the Python statement \samp{del
\var
{
o
}
[
\var
{
key
}
]
}
.
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
PyObject
_
AsFileDescriptor
}{
PyObject *o
}
Derives a file-descriptor from a Python object. If the object
is an integer or long integer, its value is returned. If not, the
object's
\method
{
fileno()
}
method is called if it exists; the method
must return an integer or long integer, which is returned as the file
descriptor value. Returns
\code
{
-1
}
on failure.
\end{cfuncdesc}
\section
{
Number Protocol
\label
{
number
}}
...
...
Doc/api/refcounts.dat
View file @
05b871c8
...
...
@@ -539,6 +539,9 @@ PyNumber_Xor:PyObject*:o2:0:
PyOS_GetLastModificationTime:long:::
PyOS_GetLastModificationTime:char*:filename::
PyObject_AsFileDescriptor:int:::
PyObject_AsFileDescriptor:PyObject*:o:0:
PyObject_CallFunction:PyObject*::+1:
PyObject_CallFunction:PyObject*:callable_object:0:
PyObject_CallFunction:char*:format::
...
...
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