Lines Matching refs:dialect
56 .. function:: reader(csvfile, dialect='excel', **fmtparams)
63 *dialect* parameter can be given which is used to define a set of parameters
64 specific to a particular CSV dialect. It may be an instance of a subclass of
68 dialect. For full details about the dialect and formatting parameters, see
86 .. function:: writer(csvfile, dialect='excel', **fmtparams)
91 ``newline=''`` [1]_. An optional *dialect*
93 particular CSV dialect. It may be an instance of a subclass of the
97 dialect. For full details about the dialect and formatting parameters, see
115 .. function:: register_dialect(name[, dialect[, **fmtparams]])
117 Associate *dialect* with *name*. *name* must be a string. The
118 dialect can be specified either by passing a sub-class of :class:`Dialect`, or
120 parameters of the dialect. For full details about the dialect and formatting
126 Delete the dialect associated with *name* from the dialect registry. An
127 :exc:`Error` is raised if *name* is not a registered dialect name.
132 Return the dialect associated with *name*. An :exc:`Error` is raised if
133 *name* is not a registered dialect name. This function returns an immutable
150 dialect='excel', *args, **kwds)
188 dialect='excel', *args, **kwds)
232 file. It is registered with the dialect name ``'excel'``.
238 TAB-delimited file. It is registered with the dialect name ``'excel-tab'``.
245 all fields. It is registered with the dialect name ``'unix'``.
272 dialect = csv.Sniffer().sniff(csvfile.read(1024))
274 reader = csv.reader(csvfile, dialect)
321 formatting parameters are grouped together into dialects. A dialect is a
325 the :class:`Dialect` class as the dialect parameter. In addition to, or instead
326 of, the *dialect* parameter, the programmer can also specify individual
404 instance), parsed according to the current dialect. Usually you should call
410 .. attribute:: csvreader.dialect
412 A read-only description of the dialect in use by the parser.
446 the current dialect.
455 dialect.
460 .. attribute:: csvwriter.dialect
462 A read-only description of the dialect in use by the writer.
517 Registering a new dialect::