Home | History | Annotate | Download | only in lib-dynload
__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses _Py_TrueStruct _Py_ZeroStruct PyBuffer_Release _Py_NoneStruct free PyArg_ParseTuple PyTuple_Size PyExc_ValueError PyErr_SetString __errno_location PyExc_IOError PyErr_SetFromErrno PyInt_FromSsize_t PyString_FromStringAndSize PyArg_UnpackTuple PyObject_IsTrue Py_BuildValue _PyObject_New malloc PyExc_MemoryError memcpy realloc memset PyExc_OverflowError PyObject_GetIter PyIter_Next PyString_AsStringAndSize PyErr_Occurred PyObject_Free PyList_New PyList_Append PyExc_StopIteration PyErr_SetNone initcStringIO Py_InitModule4 PyModule_GetDict PyType_Type PyType_Ready PyCapsule_New PyDict_SetItemString PyObject_SelfIter libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.0 
I/O operation on closed file |n:truncate n|i:seek getval (O) s*:StringIO out of memory new position too large s*:write |n:read |n:readlines |i:readline cStringIO cStringIO.cStringIO_CAPI InputType OutputType cStringIO.StringI cStringIO.StringO flush getvalue isatty reset tell close True if the file is closed writelines softspace flag indicating that a space needs to be printed; used by print 
1 A simple fast partial StringIO replacement. This module provides a simple useful replacement for the StringIO module that is written in C. It does not provide the full generality of StringIO, but it provides enough for most applications and is especially useful in conjunction with the pickle module. Usage: from cStringIO import StringIO an_output_stream=StringIO() an_output_stream.write(some_stuff) ... value=an_output_stream.getvalue() an_input_stream=StringIO(a_string) spam=an_input_stream.readline() spam=an_input_stream.read(5) an_input_stream.seek(0) # OK, start over spam=an_input_stream.read() # and read it all If someone else wants to provide a more complete implementation, go for it. :-) cStringIO.c,v 1.29 1999/06/15 14:10:27 jim Exp StringIO([s]) -- Return a StringIO-like stream for reading or writing Simple type for treating strings as input file streams Simple type for output to strings. flush(): does nothing. getvalue([use_pos]) -- Get the string value. If use_pos is specified and is a true value, then the string returned will include only the text up to the current file position. isatty(): always returns 0 read([s]) -- Read s characters, or the rest of the string readline() -- Read one line readlines() -- Read all lines reset() -- Reset the file position to the beginning seek(position) -- set the current position seek(position, mode) -- mode 0: absolute; 1: relative; 2: relative to EOF tell() -- get the current position. truncate(): truncate the file at the current position. close(): explicitly release resources held. write(s) -- Write a string to the file Note (hack:) writing None resets the buffer writelines(sequence_of_strings) -> None. Write the 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. " 4 ` ` ` @< = h# 5 n# 5 w# @ p6 " 6 # 6 " 6 ~# 7 " `7 # 7 " @ 8 # `8 # ` # h# 5 n# 5 w# @ p6 " 6 # 6 " 6 ~# 7 " `7 # 7 " @ 8 # `8 " 8 # 9 # # D# H @5 : : V# 5 ; < : 
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) GCC: (GNU) 4.6.x-google 20120106 (prerelease) GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) 
.symtab .strtab .shstrtab .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_ranges 
initfini.c crtstuff.c __CTOR_LIST__ __DTOR_LIST__ __JCR_LIST__ __do_global_dtors_aux completed.5467 dtor_idx.5469 frame_dummy __CTOR_END__ __FRAME_END__ __JCR_END__ __do_global_ctors_aux cStringIO.c IO_get_closed I_close O_close IO_truncate IO_seek IO_reset IO_isatty IO_flush IO_creadline IO_cread IO_tell IO_cgetval IO_getval newIobject Itype newOobject Otype O_cwrite O_writelines O_write O_dealloc I_dealloc IO_read IO_readlines IO_readline IO_iternext IO_StringIO cStringIO_module_documentation IO_methods CAPI IO_StringIO__doc__ Itype__doc__ I_methods file_getsetlist Otype__doc__ O_methods O_memberlist IO_flush__doc__ IO_getval__doc__ IO_isatty__doc__ IO_read__doc__ IO_readline__doc__ IO_readlines__doc__ IO_reset__doc__ IO_seek__doc__ IO_tell__doc__ IO_truncate__doc__ O_close__doc__ O_write__doc__ O_writelines__doc__ _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ __x86.get_pc_thunk.cx _DYNAMIC __errno_location@@GLIBC_2.0 PyDict_SetItemString _Py_ZeroStruct PyExc_StopIteration PyArg_UnpackTuple PyIter_Next PyExc_ValueError PyType_Ready PyObject_SelfIter __gmon_start__ _Jv_RegisterClasses realloc@@GLIBC_2.0 _fini PyObject_IsTrue memset@@GLIBC_2.0 _PyObject_New PyString_FromStringAndSize PyArg_ParseTuple PyErr_Occurred free@@GLIBC_2.0 PyCapsule_New PyExc_MemoryError _Py_TrueStruct memcpy@@GLIBC_2.0 PyModule_GetDict PyObject_GetIter PyType_Type PyExc_IOError Py_BuildValue __bss_start malloc@@GLIBC_2.0 _Py_NoneStruct PyExc_OverflowError PyList_Append PyErr_SetNone PyInt_FromSsize_t Py_InitModule4 PyString_AsStringAndSize PyObject_Free PyTuple_Size _end PyErr_SetString initcStringIO _edata PyBuffer_Release PyList_New PyErr_SetFromErrno __cxa_finalize@@GLIBC_2.1.3 _init