csv.Dialect.lineterminator

Dialect.lineterminator The string used to terminate lines produced by the writer. It defaults to '\r\n'. Note The reader is hard-coded to recognise either '\r' or '\n' as end-of-line, and ignores lineterminator. This behavior may change in the future.

csv.Dialect.quoting

Dialect.quoting Controls when quotes should be generated by the writer and recognised by the reader. It can take on any of the QUOTE_* constants (see section Module Contents) and defaults to QUOTE_MINIMAL.

csv.csvwriter.writerows()

csvwriter.writerows(rows) Write all the rows parameters (a list of row objects as described above) to the writer’s file object, formatted according to the current dialect.

csv.csvreader.__next__()

csvreader.__next__() Return the next row of the reader’s iterable object as a list, parsed according to the current dialect. Usually you should call this as next(reader).

csv.csvwriter.writerow()

csvwriter.writerow(row) Write the row parameter to the writer’s file object, formatted according to the current dialect. Changed in version 3.5: Added support of arbitrary iterables.

csv.csvreader.fieldnames

csvreader.fieldnames If not passed as a parameter when creating the object, this attribute is initialized upon first access or when the first record is read from the file.

csv.csvreader.line_num

csvreader.line_num The number of lines read from the source iterator. This is not the same as the number of records returned, as records can span multiple lines.

csv.csvwriter.dialect

csvwriter.dialect A read-only description of the dialect in use by the writer.

crypt.crypt()

crypt.crypt(word, salt=None) word will usually be a user’s password as typed at a prompt or in a graphical interface. The optional salt is either a string as returned from mksalt(), one of the crypt.METHOD_* values (though not all may be available on all platforms), or a full encrypted password including salt, as returned by this function. If salt is not provided, the strongest method will be used (as returned by methods(). Checking a password is usually done by passing the plain-text passwo

csv.csvreader.dialect

csvreader.dialect A read-only description of the dialect in use by the parser.