Added PyObject_AsFileDescriptor, which checks for integer, long integer,

or .fileno() method
This commit is contained in:
Andrew M. Kuchling 2000-07-13 23:56:54 +00:00
parent 9656abd913
commit 06051edc0d
2 changed files with 59 additions and 0 deletions

View file

@ -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
}