[Python-checkins] CVS: python/dist/src/Doc/api api.tex,1.73,1.74 refcounts.dat,1.11,1.12
A.M. Kuchling
python-dev@python.org
2000年7月13日 16:58:18 -0700
Update of /cvsroot/python/python/dist/src/Doc/api
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29126
Modified Files:
api.tex refcounts.dat
Log Message:
Document PyObject_AsFileDescriptor
Index: api.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/api.tex,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -r1.73 -r1.74
*** api.tex 2000年07月07日 15:47:06 1.73
--- api.tex 2000年07月13日 23:58:16 1.74
***************
*** 1420,1423 ****
--- 1420,1430 ----
\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}}
Index: refcounts.dat
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/refcounts.dat,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** refcounts.dat 2000年07月07日 15:48:54 1.11
--- refcounts.dat 2000年07月13日 23:58:16 1.12
***************
*** 540,543 ****
--- 540,546 ----
PyOS_GetLastModificationTime:char*:filename::
+ PyObject_AsFileDescriptor:int:::
+ PyObject_AsFileDescriptor:PyObject*:o:0:
+
PyObject_CallFunction:PyObject*::+1:
PyObject_CallFunction:PyObject*:callable_object:0: