summaryrefslogtreecommitdiffstats
path: root/Include/fileobject.h
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-07-13 23:56:54 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-07-13 23:56:54 (GMT)
commit06051edc0d4987994ccd9d578210a1fe1fa1d13a (patch)
tree6ca608758bb0d4d6d587cf0645ab0c77cb37ceb4 /Include/fileobject.h
parent9656abd913d359ecd48b07f4b4237b007f26d778 (diff)
downloadcpython-06051edc0d4987994ccd9d578210a1fe1fa1d13a.zip
cpython-06051edc0d4987994ccd9d578210a1fe1fa1d13a.tar.gz
cpython-06051edc0d4987994ccd9d578210a1fe1fa1d13a.tar.bz2
Added PyObject_AsFileDescriptor, which checks for integer, long integer,
or .fileno() method
Diffstat (limited to 'Include/fileobject.h')
-rw-r--r--Include/fileobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/fileobject.h b/Include/fileobject.h
index 7c6bfac..15d1d5c 100644
--- a/Include/fileobject.h
+++ b/Include/fileobject.h
@@ -30,6 +30,7 @@ extern DL_IMPORT(PyObject *) PyFile_GetLine(PyObject *, int);
extern DL_IMPORT(int) PyFile_WriteObject(PyObject *, PyObject *, int);
extern DL_IMPORT(int) PyFile_SoftSpace(PyObject *, int);
extern DL_IMPORT(int) PyFile_WriteString(char *, PyObject *);
+extern DL_IMPORT(int) PyObject_AsFileDescriptor(PyObject *);
#ifdef __cplusplus
}