# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT """ Fast implementation of io.FileIO. """ class _FileIO(object): """ file(name: str[, mode: str]) -> file IO object Open a file. The mode can be 'r', 'w' or 'a' for reading (default), writing or appending. The file will be created if it doesn't exist when opened for writing or appending; it will be truncated when opened for writing. Add a '+' to the mode to allow simultaneous reading and writing. """ def __init__(self, arg0, arg1=None): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signature """ return file(__file__) def close(self): """ close() -> None. Close the file. A closed file cannot be used for further I/O operations. close() may be called more than once without error. Changes the fileno to -1. """ return file(__file__) closed = property(None, None, None, """ True if the file is closed """ ) closefd = property(None, None, None, """ True if the file descriptor will be closed """ ) def fileno(self): """ fileno() -> int. "file descriptor". This is needed for lower-level file interfaces, such the fcntl module. """ return file(__file__) def isatty(self): """ isatty() -> bool. True if the file is connected to a tty device. """ return file(__file__) mode = property(None, None, None, """ String giving the file mode """ ) def read(self, arg0): """ read(size: int) -> bytes. read at most size bytes, returned as bytes. Only makes one system call, so less data may be returned than requested In non-blocking mode, returns None if no data is available. On end-of-file, returns ''. """ return None def readable(self): """ readable() -> bool. True if file was opened in a read mode. """ return file(__file__) def readall(self): """ readall() -> bytes. read all data from the file, returned as bytes. In non-blocking mode, returns as much as is immediately available, or None if no data is available. On end-of-file, returns ''. """ return file(__file__) def readinto(self): """ readinto() -> Undocumented. Don't use this; it may go away. """ return None def seek(self, arg0, arg1=None): """ seek(offset: int[, whence: int]) -> None. Move to new file position. Argument offset is a byte count. Optional argument whence defaults to 0 (offset from start of file, offset should be >= 0); other values are 1 (move relative to current position, positive or negative), and 2 (move relative to end of file, usually negative, although many platforms allow seeking beyond the end of a file). Note that not all file objects are seekable. """ return file(__file__) def seekable(self): """ seekable() -> bool. True if file supports random-access. """ return file(__file__) def tell(self): """ tell() -> int. Current file position """ return file(__file__) def truncate(self, arg0=None): """ truncate([size: int]) -> None. Truncate the file to at most size bytes. Size defaults to the current file position, as returned by tell().The current file position is changed to the value of size. """ return file(__file__) def writable(self): """ writable() -> bool. True if file was opened in a write mode. """ return file(__file__) def write(self, arg0): """ write(b: bytes) -> int. Write bytes b to file, return number written. Only makes one system call, so not all of the data may be written. The number of bytes actually written is returned. """ return file(__file__) __doc__ = 'Fast implementation of io.FileIO.' __file__ = '/Users/Shared/src/ide/build-files/build-temp/runtimes-release/__os__/osx/runtime-python2.6/lib/Python.framework/Versions/Current/lib/python2.6/lib-dynload/_fileio.so' __name__ = '_fileio' __package__ = None