mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Added PyObject_AsFileDescriptor, which checks for integer, long integer,
or .fileno() method
This commit is contained in:
parent
9656abd913
commit
06051edc0d
2 changed files with 59 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue