deimos.python.fileobject

Mirror fileobject.h

Members

Functions

PyFile_AsFile
FILE* PyFile_AsFile(PyObject* )

Availability: 2.*

PyFile_Check
int PyFile_Check(PyObject* op)

Availability: 2.*

PyFile_CheckExact
int PyFile_CheckExact(PyObject* op)

Availability: 2.*

PyFile_DecUseCount
void PyFile_DecUseCount(PyFileObject* )

Availability: >= 2.6

PyFile_FromFd
PyObject* PyFile_FromFd(int , char* , char* , int , char* , char* , char* , int )

Availability: 3.*

PyFile_FromFile
PyObject* PyFile_FromFile(FILE* , char* , char* , int function(FILE*) )

Availability: 2.*

PyFile_FromString
PyObject* PyFile_FromString(char* , char* )

Availability: 2.*

PyFile_GetLine
PyObject* PyFile_GetLine(PyObject* , int )

_

PyFile_IncUseCount
void PyFile_IncUseCount(PyFileObject* )

Availability: >= 2.6

PyFile_Name
PyObject_BorrowedRef* PyFile_Name(PyObject* )

Availability: 2.*

PyFile_NewStdPrinter
PyObject* PyFile_NewStdPrinter(int )

Availability: 3.*

PyFile_SetBufSize
void PyFile_SetBufSize(PyObject* , int )

Availability: 2.*

PyFile_SetEncoding
int PyFile_SetEncoding(PyObject* , const(char)* )

Availability: 2.*

PyFile_SetEncodingAndErrors
int PyFile_SetEncodingAndErrors(PyObject* , const(char)* , const(char)* errors)

Availability: >= 2.6

PyFile_SoftSpace
int PyFile_SoftSpace(PyObject* , int )

Availability: 2.*

PyFile_WriteObject
int PyFile_WriteObject(PyObject* , PyObject* , int )

_

PyFile_WriteString
int PyFile_WriteString(const(char)* , PyObject* )

_

PyObject_AsFileDescriptor
int PyObject_AsFileDescriptor(PyObject* )

_

Py_UniversalNewlineFgets
char* Py_UniversalNewlineFgets(char* , int , FILE* , PyObject* )

_

Py_UniversalNewlineFread
size_t Py_UniversalNewlineFread(char* , size_t , FILE* , PyObject* )

Routines to replace fread() and fgets() which accept any of \r, \n or \r\n as line terminators. Availability: 2.*

_PyFile_SanitizeMode
int _PyFile_SanitizeMode(char* mode)

A routine to do sanity checking on the file mode string. returns non-zero on if an exception occurred Availability: 2.*

Manifest constants

PY_STDIOTEXTMODE
enum PY_STDIOTEXTMODE;

_

Structs

PyFileObject
struct PyFileObject

subclass of PyObject Availability: 2.*

Meta