Home | History | Annotate | Download | only in lib-dynload
__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses _PyIO_unsupported_operation PyErr_SetString PyLong_FromLongLong PyLong_FromLong _PyIO_str_seek PyObject_CallMethodObjArgs PyExc_ValueError PyNumber_AsOff_t PyErr_Occurred PyExc_IOError PyErr_Format _PyIO_str_tell PyLong_FromSsize_t _PyArg_ParseTuple_SizeT _PyObject_CallMethod_SizeT memcpy PyBuffer_Release PyExc_TypeError PyMem_Free PyMem_Malloc PyThread_free_lock PyThread_allocate_lock PyErr_Clear PyExc_RuntimeError PyErr_NoMemory _PyArg_ParseTupleAndKeywords_SizeT PyExc_DeprecationWarning PyErr_WarnEx _Py_TrueStruct _PyIOBase_check_writable PyBufferedWriter_Type PyFileIO_Type _PyIOBase_check_readable PyBufferedReader_Type _PyIOBase_finalize PyObject_GetAttrString PyObject_Repr PyString_FromFormat PyExc_AttributeError PyErr_ExceptionMatches PyObject_ClearWeakRefs _PyIO_str_closed PyObject_GetAttr PyObject_IsTrue PyThread_get_thread_ident PyEval_SaveThread PyThread_acquire_lock PyEval_RestoreThread _Py_NoneStruct PyThread_release_lock _PyIO_str_flush _PyIO_str_close PyErr_Restore PyErr_Fetch _PyIO_str_isatty _PyIO_str_fileno _PyIO_str_writable _PyIO_str_readable _PyIO_str_seekable _PyObject_CallFunction_SizeT _PyIOBase_check_seekable PyBufferedRandom_Type PyObject_CallObject _Py_ZeroStruct _PyIO_trap_eintr PyExc_EnvironmentError PyErr_NormalizeException PyObject_RichCompareBool PyBuffer_FillInfo PyMemoryView_FromBuffer __errno_location _PyIO_str_write PyNumber_AsSsize_t PyErr_CheckSignals PyExc_BlockingIOError PyErr_SetObject _PyFileIO_closed _PyIO_str_truncate PyErr_GivenExceptionMatches memmove _PyIO_str_readinto memchr PyString_FromStringAndSize PyList_New PyList_Append _PyIO_empty_bytes _PyString_Join _PyIO_ConvertSsize_t _PyIO_str_readline _PyIO_str_read _PyString_Resize PyType_GenericNew PyBufferedRWPair_Type PyBufferedIOBase_Type PyIOBase_Type PyArg_ParseTuple PyExc_OverflowError PyNumber_Check PyTuple_Pack PyMem_Realloc memset PyObject_GetBuffer PyObject_GetIter PyIter_Next PyDict_Copy Py_BuildValue PyDict_Update PyArg_ParseTupleAndKeywords PyBytesIO_Type PyObject_SelfIter PyUnicodeUCS2_FromString PyBool_FromLong PyFloat_Type PyType_IsSubtype PyLong_AsLongLong lseek64 PyErr_SetFromErrno _PyLong_AsInt PyByteArray_Type PyObject_AsCharBuffer __fxstat64 PyObject_SetAttrString PyUnicodeUCS2_FromObject Py_FileSystemDefaultEncoding PyUnicodeUCS2_AsEncodedString PyErr_SetFromErrnoWithFilenameObject open64 PyErr_SetFromErrnoWithFilename strerror PyExc_OSError PyInt_FromLong ftruncate64 PyRawIOBase_Type PyObject_GenericGetAttr PyType_GenericAlloc PyObject_GC_Del PyByteArray_FromStringAndSize PyByteArray_AsString PyObject_HasAttrString PyObject_Size PyByteArray_Resize _PyByteArray_empty_string _PyIOBase_check_closed strlen strchr PyLong_AsLong _PyInt_AsInt PyTextIOWrapper_Type PyNumber_Index _PyLong_Sign init_io Py_InitModule4 PyImport_ImportModule _PyIO_os_module PyModule_AddIntConstant PyType_Type PyModule_AddObject PyType_Ready PyTextIOBase_Type PyStringIO_Type PyIncrementalNewlineDecoder_Type PyString_InternFromString _PyIO_str_decode _PyIO_str_encode _PyIO_str_getstate _PyIO_str_newlines _PyIO_str_nl _PyIO_str_read1 _PyIO_str_reset _PyIO_str_setstate PyUnicodeUCS2_FromStringAndSize _PyIO_empty_str _PyIO_zero _PyIO_locale_module _PyIO_find_line_ending PyUnicodeUCS2_FromUnicode _PyIncrementalNewlineDecoder_decode PyUnicodeUCS2_Replace PyString_FromString PyUnicodeUCS2_GetSize PyTuple_GetSlice _Py_BuildValue_SizeT _PyLong_FromByteArray _PyArg_Parse_SizeT PyString_AsString PyCodec_IncrementalDecoder PyCodec_IncrementalEncoder _PyCodec_Lookup strcmp PyExc_ImportError PyUnicodeUCS2_EncodeUTF32 PyUnicodeUCS2_EncodeUTF16 PyUnicodeUCS2_EncodeUTF8 PyUnicodeUCS2_EncodeLatin1 PyUnicodeUCS2_EncodeASCII PyNumber_Long _PyLong_AsByteArray PyUnicodeUCS2_Resize PyString_Size PyNumber_Add PyUnicodeUCS2_Concat PyUnicodeUCS2_Join libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.2 GLIBC_2.1 GLIBC_2.0 
detach w*:readinto read() should return bytes can't allocate read lock raw max_buffer_size O|nn:BufferedWriter max_buffer_size is deprecated O|n:BufferedReader name <%s> <%s name=%s> raw stream has been detached reentrant call inside %s OO|nn:BufferedRWPair On O|nn:BufferedRandom flush isatty close isn flush of closed file |O:truncate O|i:seek seek of closed file s*:write write to closed file readline of closed file |O&:readline |O&:read read of closed file |n:peek n:read1 read length must be positive _io.BufferedRandom _io.BufferedRWPair _io.BufferedWriter _io.BufferedReader _io._BufferedIOBase seekable fileno tell __sizeof__ Raw stream returned invalid position %lld buffer size must be strictly positive the BufferedRWPair object is being garbage-collected I/O operation on uninitialized object raw write() returned invalid length %zd (should have been between 0 and %zd) write could not complete without blocking whence must be between 0 and 2, not %d raw readinto() returned invalid length %zd (should have been between 0 and %zd) readline() should have returned a bytes object, not '%.200s' read length must be positive or -1 I/O operation on closed file. negative seek value %zd new position too large |O:read |O:readline new buffer size too large negative size value %zd w* |O:readlines (OnN) initial_bytes |O:BytesIO _io.BytesIO getvalue __getstate__ __setstate__ True if the file is closed. invalid whence (%i, should be 0, 1 or 2) integer argument expected, got '%s' %.200s.__setstate__ argument should be 3-tuple, got %.200s second item of state must be an integer, not %.200s position value cannot be negative third item of state should be a dict, got a %.200s ?wb rb rb+ an integer is required <_io.FileIO [closed]> <_io.FileIO fd=%d mode='%s'> O|si:fileio Negative filedescriptor invalid mode: %.200s (is) I/O operation on closed file O|i reading File not open for %s |O& writing |O s* _io.FileIO closefd readall True if the file is closed String giving the file mode <_io.FileIO name=%s mode='%s'> integer argument expected, got float encoder failed to return bytes Must have exactly one of read/write/append mode and at most one plus Cannot use closefd=False with file name unbounded read returned more bytes than a Python string can hold True if the file descriptor will be closed |n:read __IOBase_closed |O&:readlines extend O:writelines _io._RawIOBase _io._IOBase _checkClosed _checkSeekable _checkReadable _checkWritable __enter__ __exit__ peek() should have returned a bytes object, not '%.200s' read() should have returned a bytes object, not '%.200s' File or stream is not writable. File or stream is not readable. File or stream is not seekable. OO|n:BlockingIOError errors newline O|sizzzi:open invalid file: %s invalid mode: '%s' Osi invalid buffering size unknown mode: '%s' Oi Osssi _io os DEFAULT_BUFFER_SIZE UnsupportedOperation s(OO){} decode encode getstate newlines reset setstate characters_written can't use U and writing mode at once can't have text and binary mode at once must have exactly one of read/write/append mode binary mode doesn't take an encoding argument binary mode doesn't take an errors argument binary mode doesn't take a newline argument can't have unbuffered text I/O cannot fit '%.200s' into an offset-sized integer integer argument expected, got '%.200s' Exception raised when I/O would block on a non-blocking I/O stream Invalid whence (%i, should be 0, 1 or 2) Can't do nonzero cur-relative seeks readline() should have returned an str object, not '%.200s' initial_value must be unicode or None, not %.200s %.200s.__setstate__ argument should be 4-tuple, got %.200s third item of state must be an integer, got %.200s fourth item of state should be a dict, got a %.200s unicode argument expected, got '%s' Negative seek position %zd Negative size value %zd initial_value |Oz:__init__ illegal newline value: %s (OOnN) _io.StringIO line_buffering sss (OK) NK decoder translate strict buffer O|zzzi:fileio locale getpreferredencoding ascii ((si)) ((OK)) U:write not writable replace (iO) s# (s#i) (O) negative seek position %s iN is not readable (OO) NN input final O|i:IncrementalNewlineDecoder _io.TextIOWrapper _io.IncrementalNewlineDecoder _io._TextIOBase iso8859-1 utf-8 utf-16-be utf-16-le utf-16 utf-32-be utf-32-le utf-32 _CHUNK_SIZE underlying buffer has been detached Oi|O:IncrementalNewlineDecoder could not determine default encoding a strictly positive integer is required <_io.TextIOWrapper encoding=%s> <_io.TextIOWrapper name=%s encoding=%s> underlying stream is not seekable telling position disabled by next() call decoder should return a string result, not '%.200s' can't reconstruct logical file position can't do nonzero cur-relative seeks can't do nonzero end-relative seeks invalid whence (%d, should be 0, 1 or 2) underlying read() should have returned a bytes object, not '%.200s' can't restore logical file position IncrementalNewlineDecoder.__init__ not called underlying read1() should have returned a bytes object, not '%.200s' decoder getstate() should have returned a bytes object, not '%.200s' xe e e e e e f @e 
A buffered interface to random access streams. The constructor creates a reader and writer for a seekable stream, raw, given in the first argument. If the buffer_size is omitted it defaults to DEFAULT_BUFFER_SIZE. max_buffer_size isn't used anymore. A buffered reader and writer object together. A buffered reader object and buffered writer object put together to form a sequential IO object that can read and write. This is typically used with a socket or two-way pipe. reader and writer are RawIOBase objects that are readable and writeable respectively. If the buffer_size is omitted it defaults to DEFAULT_BUFFER_SIZE. A buffer for a writeable sequential RawIO object. The constructor creates a BufferedWriter for the given writeable raw stream. If the buffer_size is not given, it defaults to DEFAULT_BUFFER_SIZE. max_buffer_size isn't used anymore. Create a new buffered reader using the given readable raw IO object. Base class for buffered IO objects. The main difference with RawIOBase is that the read() method supports omitting the size argument, and does not have a default implementation that defers to readinto(). In addition, read(), readinto() and write() may raise BlockingIOError if the underlying raw stream is in non-blocking mode and not ready; unlike their raw counterparts, they will never return None. A typical implementation should not inherit from a RawIOBase implementation, but wrap one. Disconnect this buffer from its underlying raw stream and return it. After the raw stream has been detached, the buffer is in an unusable state. Read and return up to n bytes. If the argument is omitted, None, or negative, reads and returns all data until EOF. If the argument is positive, and the underlying raw stream is not 'interactive', multiple raw reads may be issued to satisfy the byte count (unless EOF is reached first). But for interactive raw streams (as well as sockets and pipes), at most one raw read will be issued, and a short result does not imply that EOF is imminent. Returns an empty bytes object on EOF. Returns None if the underlying raw stream was open in non-blocking mode and no data is available at the moment. Read and return up to n bytes, with at most one read() call to the underlying raw stream. A short result does not imply that EOF is imminent. Returns an empty bytes object on EOF. Write the given buffer to the IO stream. Returns the number of bytes written, which is never less than len(b). Raises BlockingIOError if the buffer is full and the underlying raw stream cannot accept more data at the moment. o[ l T S E @ U R h @ d pa [ I E @ `H H ` [ l T S E U R h @ d O [ l T S E U R h d Q [ ` Z Y tY ^ [ ] i \ zi @\ [ [ Z `[ Z p Z s [ ^ Z q )[ L[ ~Y _ [ 0 E[ Z 0x [ PM Y 5a @V Z W Sa V )[ `g E[ f L[ @f ~Y e Z e Z d i d zi pc Z i Z g 5a U Z Y tY ^ [ ] i \ zi @\ [ [ Z `[ Z 0x Z q Z p Z s [ ^ [ PM Y 5a @V Z W Sa V tY ^ Z ] Z Y [ ] i \ zi @\ [ [ Z `[ )[ E[ L[ [ 0 Z s [ ^ Z q [ PM Y 5a @V Z W Sa V tY `J )[ 0J L[ J ~Y M Z I BytesIO([buffer]) -> object Create a buffered I/O implementation using an in-memory bytes buffer, ready for reading and writing. readable() -> bool. Returns True if the IO object can be read. seekable() -> bool. Returns True if the IO object can be seeked. writable() -> bool. Returns True if the IO object can be written. close() -> None. Disable all I/O operations. flush() -> None. Does nothing. isatty() -> False. Always returns False since BytesIO objects are not connected to a tty-like device. tell() -> current file position, an integer write(bytes) -> int. Write bytes to file. Return the number of bytes written. writelines(sequence_of_strings) -> None. Write strings to the file. Note that newlines are not added. The sequence can be any iterable object producing strings. This is equivalent to calling write() for each string. read1(size) -> read at most size bytes, returned as a string. If the size argument is negative or omitted, read until EOF is reached. Return an empty string at EOF. readinto(bytearray) -> int. Read up to len(b) bytes into b. Returns number of bytes read (0 for EOF), or None if the object is set not to block as has no data to read. readline([size]) -> next line from the file, as a string. Retain newline. A non-negative size argument limits the maximum number of bytes to return (an incomplete line may be returned then). Return an empty string at EOF. readlines([size]) -> list of strings, each a line from the file. Call readline() repeatedly and return a list of the lines so read. The optional size argument, if given, is an approximate bound on the total number of bytes in the lines returned. read([size]) -> read at most size bytes, returned as a string. If the size argument is negative, read until EOF is reached. Return an empty string at EOF. getvalue() -> bytes. Retrieve the entire contents of the BytesIO object. seek(pos, whence=0) -> int. Change stream position. Seek to byte offset pos relative to position indicated by whence: 0 Start of stream (the default). pos should be >= 0; 1 Current position - pos may be negative; 2 End of stream - pos usually negative. Returns the new absolute position. truncate([size]) -> int. Truncate the file to at most size bytes. Size defaults to the current file position, as returned by tell(). The current file position is unchanged. Returns the new size. ^ p E @ @ ` i 0 ` [ 0 zi 0 Z ` Z Z [ @ @ Z b p L[ 0 ~Y [ @ b @ )[ @ @ ^ Z @ Z p ^ 0 ^ [ p 5a ^ 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. 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 ''. 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 ''. readinto() -> Same as RawIOBase.readinto(). 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. 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. tell() -> int. Current file position 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. 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. seekable() -> bool. True if file supports random-access. readable() -> bool. True if file was opened in a read mode. writable() -> bool. True if file was opened in a write mode. fileno() -> int. "file descriptor". This is needed for lower-level file interfaces, such the fcntl module. isatty() -> bool. True if the file is connected to a tty device. a @ E P ` @ 0 =[ Sa a )[ 0 @ a 0 @ ~Y Z ` Z [ 0 Z Z @ [ 0 i zi @ [ Z 5a !a a tb Sa  1 to indicate the size of a fixed-size chunk buffer. When no buffering argument is given, the default buffering policy works as follows: * Binary files are buffered in fixed-size chunks; the size of the buffer is chosen using a heuristic trying to determine the underlying device's "block size" and falling back on `io.DEFAULT_BUFFER_SIZE`. On many systems, the buffer will typically be 4096 or 8192 bytes long. * "Interactive" text files (files for which isatty() returns True) use line buffering. Other text files use the policy described above for binary files. encoding is the name of the encoding used to decode or encode the file. This should only be used in text mode. The default encoding is platform dependent, but any encoding supported by Python can be passed. See the codecs module for the list of supported encodings. errors is an optional string that specifies how encoding errors are to be handled---this argument should not be used in binary mode. Pass 'strict' to raise a ValueError exception if there is an encoding error (the default of None has the same effect), or pass 'ignore' to ignore errors. (Note that ignoring encoding errors can lead to data loss.) See the documentation for codecs.register for a list of the permitted encoding error strings. newline controls how universal newlines works (it only applies to text mode). It can be None, '', '\n', '\r', and '\r\n'. It works as follows: * On input, if newline is None, universal newlines mode is enabled. Lines in the input can end in '\n', '\r', or '\r\n', and these are translated into '\n' before being returned to the caller. If it is '', universal newline mode is enabled, but line endings are returned to the caller untranslated. If it has any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated. * On output, if newline is None, any '\n' characters written are translated to the system default line separator, os.linesep. If newline is '', no translation takes place. If newline is any of the other legal values, any '\n' characters written are translated to the given string. If closefd is False, the underlying file descriptor will be kept open when the file is closed. This does not work when a file name is given and must be True in that case. open() returns a file object whose type depends on the mode, and through which the standard file operations such as reading and writing are performed. When open() is used to open a file in a text mode ('w', 'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open a file in a binary mode, the returned class varies: in read binary mode, it returns a BufferedReader; in write binary and append binary modes, it returns a BufferedWriter, and in read/write mode, it returns a BufferedRandom. It is also possible to use a string or bytearray as a file for both reading and writing. For strings StringIO can be used like a file opened in a text mode, and for bytes a BytesIO can be used like a file opened in a binary mode. Id !d $ f e Text I/O implementation using an in-memory buffer. The initial_value argument sets the value of object. The newline argument is like the one of TextIOWrapper's constructor. Close the IO object. Attempting any further operation after the object is closed will raise a ValueError. This method has no effect if the file is already closed. Retrieve the entire contents of the object. Read at most n characters, returned as a string. If the argument is negative or omitted, read until EOF is reached. Return an empty string at EOF. Read until newline or EOF. Returns an empty string if EOF is hit immediately. Tell the current file position. Truncate size to pos. The pos argument defaults to the current file position, as returned by tell(). The current file position is unchanged. Returns the new absolute position. Change stream position. Seek to character offset pos relative to position indicated by whence: 0 Start of stream (the default). pos should be >= 0; 1 Current position - pos must be 0; 2 End of stream - pos must be 0. Returns the new absolute position. Write string to file. Returns the number of characters written, which is always equal to the length of the string. seekable() -> bool. Returns True if the IO object can be seeked. readable() -> bool. Returns True if the IO object can be read. writable() -> bool. Returns True if the IO object can be written. h 0 E , ( p Z ^ ` @ )[ [ [ ` Z Z @ ` Z [ P i ` zi ^ ` ^ 5a 0 d h 0 Character and line based layer over a BufferedIOBase object, buffer. encoding gives the name of the encoding that the stream will be decoded or encoded with. It defaults to locale.getpreferredencoding. errors determines the strictness of encoding and decoding (see the codecs.register) and defaults to "strict". newline controls how line endings are handled. It can be None, '', '\n', '\r', and '\r\n'. It works as follows: * On input, if newline is None, universal newlines mode is enabled. Lines in the input can end in '\n', '\r', or '\r\n', and these are translated into '\n' before being returned to the caller. If it is '', universal newline mode is enabled, but line endings are returned to the caller untranslated. If it has any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated. * On output, if newline is None, any '\n' characters written are translated to the system default line separator, os.linesep. If newline is '', no translation takes place. If newline is any of the other legal values, any '\n' characters written are translated to the given string. If line_buffering is True, a call to flush is implied when a call to write contains a newline character. Codec used when reading a file in universal newlines mode. It wraps another incremental decoder, translating \r\n and \r into \n. It also records the types of newlines encountered. When used with translate=False, it ensures that the newline sequence is returned in one piece. When used with decoder=None, it expects unicode strings as decode input and translates newlines without first invoking an external decoder. Base class for text I/O. This class provides a character and line based interface to stream I/O. There is no readinto method because Python's character strings are immutable. There is no public constructor. Separate the underlying buffer from the TextIOBase and return it. After the underlying buffer has been detached, the TextIO is in an unusable state. Read at most n characters from stream. Read from underlying buffer until we have n characters or we hit EOF. If n is negative or omitted, read until EOF. Read until newline or EOF. Returns an empty string if EOF is hit immediately. Write string to stream. Returns the number of characters written (which is always equal to the length of the string). Encoding of the text stream. Subclasses should override. Line endings translated so far. Only line endings translated during reading are considered. Subclasses should override. The error setting of the decoder or encoder. Subclasses should override. i ` p " E X W \ j 0 @ ` @ ,j Zi