Home | History | Annotate | Download | only in lib-dynload
__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses PyString_AsString strchr PyErr_Format PyInt_FromLong PyDict_Keys _PyObject_GC_New PyArg_UnpackTuple PyObject_GetAttrString PyCallable_Check PyExc_TypeError PyErr_SetString Py_BuildValue PyObject_Call PyObject_GC_Track PyObject_GC_UnTrack PyMem_Free PyObject_GC_Del PyString_FromStringAndSize PyNumber_Float PyList_Append PyMem_Malloc PyMem_Realloc PyErr_NoMemory PySequence_Check PySequence_Size _Py_NoneStruct PyFloat_Type PyType_IsSubtype PyObject_Repr PySequence_GetItem PyNumber_Check PyObject_Str PyString_Size memmove PyObject_CallFunction PyObject_GetIter PyIter_Next PyErr_Occurred PyInt_AsLong PyDict_DelItem PyArg_ParseTupleAndKeywords PyBaseString_Type PyDict_GetItem PyErr_Clear PyObject_IsTrue PyString_FromString PyDict_SetItem PyList_New init_csv PyType_Ready Py_InitModule4 PyModule_AddStringConstant PyDict_New PyModule_AddObject PyModule_AddIntConstant PyErr_NewException PyObject_SelfIter libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.0 
need to escape, but no escapechar set single empty field record must be quoted argument 1 must have a "write" method writerows() argument must be iterable "%s" must be an 1-character string quotechar must be set if quoting enabled dialect name must be a string or unicode argument 1 must be an iterator field larger than field limit (%ld) new-line character seen in unquoted field - do you need to open the file in universal-newline mode? (O) () write sequence expected (s#) field_size_limit limit must be an integer unknown dialect |OOOOOOOOO delimiter doublequote escapechar lineterminator quotechar quoting skipinitialspace strict "%s" must be an string "%s" must be an integer bad "quoting" value delimiter must be set lineterminator must be set '%c' expected after '%c' unexpected end of data line contains NULL byte _csv 1.0 __version__ _csv.Error _csv.Dialect _csv.reader _csv.writer list_dialects unregister_dialect get_dialect QUOTE_MINIMAL QUOTE_ALL QUOTE_NONNUMERIC QUOTE_NONE line_num writerow writerows p 
Q CSV parsing and writing. This module provides classes that assist in the reading and writing of Comma Separated Value (CSV) files, and implements the interface described by PEP 305. Although many CSV files are simple to parse, the format is not formally defined by a stable specification and is subtle enough that parsing lines of a CSV file with something like line.split(",") is bound to fail. The module supports three basic APIs: reading, writing, and registration of dialects. DIALECT REGISTRATION: Readers and writers support a dialect argument, which is a convenient handle on a group of settings. When the dialect argument is a string, it identifies one of the dialects previously registered with the module. If it is a class or instance, the attributes of the argument are used as the settings for the reader or writer: class excel: delimiter = ',' quotechar = '"' escapechar = None doublequote = True skipinitialspace = False lineterminator = '\r\n' quoting = QUOTE_MINIMAL SETTINGS: * quotechar - specifies a one-character string to use as the quoting character. It defaults to '"'. * delimiter - specifies a one-character string to use as the field separator. It defaults to ','. * skipinitialspace - specifies how to interpret whitespace which immediately follows a delimiter. It defaults to False, which means that whitespace immediately following a delimiter is part of the following field. * lineterminator - specifies the character sequence which should terminate rows. * quoting - controls when quotes should be generated by the writer. It can take on any of the following module constants: csv.QUOTE_MINIMAL means only when required, for example, when a field contains either the quotechar or the delimiter csv.QUOTE_ALL means that quotes are always placed around fields. csv.QUOTE_NONNUMERIC means that quotes are always placed around fields which do not parse as integers or floating point numbers. csv.QUOTE_NONE means that quotes are never placed around fields. * escapechar - specifies a one-character string used to escape the delimiter when quoting is set to QUOTE_NONE. * doublequote - controls the handling of quotes inside fields. When True, two consecutive quotes are interpreted as one during read, and when writing, each quote character embedded in the data is written as two quotes CSV dialect The Dialect type records CSV parsing and generation options. CSV reader Reader objects are responsible for reading and parsing tabular data in CSV format. CSV writer Writer objects are responsible for generating tabular data in CSV format from sequence input. csv_reader = reader(iterable [, dialect='excel'] [optional keyword args]) for row in csv_reader: process(row) The "iterable" argument can be any object that returns a line of input for each iteration, such as a file object or a list. The optional "dialect" parameter is discussed below. The function also accepts optional keyword arguments which override settings provided by the dialect. The returned object is an iterator. Each iteration returns a row of the CSV file (which can span multiple input lines): csv_writer = csv.writer(fileobj [, dialect='excel'] [optional keyword args]) for row in sequence: csv_writer.writerow(row) [or] csv_writer = csv.writer(fileobj [, dialect='excel'] [optional keyword args]) csv_writer.writerows(rows) The "fileobj" argument can be any object that supports the file API. Return a list of all know dialect names. names = csv.list_dialects() Create a mapping from a string name to a dialect class. dialect = csv.register_dialect(name, dialect) Delete the name/dialect mapping associated with a string name. csv.unregister_dialect(name) Return the dialect instance associated with name. dialect = csv.get_dialect(name) Sets an upper limit on parsed fields. csv.field_size_limit([limit]) Returns old limit. If limit is not given, no new limit is set and the old limit is returned writerow(sequence) Construct and write a CSV record from a sequence of fields. Non-string elements will be converted to string. writerows(sequence of sequences) Construct and write a series of sequences to a csv file. Non-string elements will be converted to string. F> \ g h & _> E \ p h i X> 0 `] d> ` _ k> 0 @a {> . a y> % b > 0 b < $ b > > > > < = = #= .= == G= O= `= = O= = `= #= $ .= == P$ G= < > ( > c > `" @d < S> , E \ 0 6 4j h 
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 _csv.c Dialect_get_lineterminator Dialect_dealloc Reader_clear Writer_clear join_append_data error_obj Dialect_get_quoting csv_list_dialects dialects csv_writer Writer_Type Dialect_Type Writer_dealloc Reader_dealloc parse_save_field Reader_traverse Writer_traverse join_check_rec_size.isra.3.part.4 parse_grow_buff.isra.5 join_append csv_writerow csv_writerows _set_char Dialect_get_quotechar Dialect_get_escapechar csv_field_size_limit field_limit csv_unregister_dialect dialect_new dialect_kws quote_styles csv_register_dialect csv_get_dialect csv_reader Reader_Type parse_process_char Reader_iternext csv_module_doc csv_methods Dialect_Type_doc Dialect_memberlist Dialect_getsetlist Reader_Type_doc Reader_methods Reader_memberlist Writer_Type_doc Writer_methods Writer_memberlist csv_reader_doc csv_writer_doc csv_list_dialects_doc csv_register_dialect_doc csv_unregister_dialect_doc csv_get_dialect_doc csv_field_size_limit_doc csv_writerow_doc csv_writerows_doc .L379 .L380 .L381 .L382 .L383 .L384 .L385 .L386 _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ _DYNAMIC PyModule_AddObject PyString_AsString PyArg_UnpackTuple PyIter_Next PyType_Ready PyModule_AddStringConstant PyObject_SelfIter PyMem_Free __gmon_start__ _Jv_RegisterClasses strchr@@GLIBC_2.0 _fini PyObject_GC_Del PyErr_NoMemory PyObject_GC_UnTrack PyObject_IsTrue PyExc_TypeError PyMem_Realloc PyObject_Str PyString_FromStringAndSize PyString_Size PyModule_AddIntConstant PyErr_Format PyErr_Occurred PyBaseString_Type PyArg_ParseTupleAndKeywords PyFloat_Type PyDict_Keys PyNumber_Float PyString_FromString _PyObject_GC_New PyInt_FromLong PySequence_GetItem PyDict_GetItem PyInt_AsLong PySequence_Size PyObject_GetIter PyType_IsSubtype PyDict_DelItem PySequence_Check Py_BuildValue PyObject_GetAttrString __bss_start _Py_NoneStruct PyNumber_Check PyErr_NewException PyList_Append PyObject_Call memmove@@GLIBC_2.0 Py_InitModule4 _end PyErr_Clear init_csv PyErr_SetString PyObject_CallFunction _edata PyList_New PyMem_Malloc __cxa_finalize@@GLIBC_2.1.3 PyCallable_Check PyObject_GC_Track PyDict_SetItem PyObject_Repr _init PyDict_New