Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Attributes
csv.Dialect Class Reference
Inheritance diagram for csv.Dialect:
Inheritance graph
[legend]
Collaboration diagram for csv.Dialect:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__

Static Public Attributes

 delimiter = None
 quotechar = None
 escapechar = None
 doublequote = None
 skipinitialspace = None
 lineterminator = None
 quoting = None

Private Member Functions

def _validate

Static Private Attributes

string _name = ""
 _valid = False

Detailed Description

Describe a CSV dialect.

This must be subclassed (see csv.excel).  Valid attributes are:
delimiter, quotechar, escapechar, doublequote, skipinitialspace,
lineterminator, quoting.

Definition at line 22 of file csv.py.


Constructor & Destructor Documentation

def csv.Dialect.__init__ (   self)

Definition at line 41 of file csv.py.

00041 
00042     def __init__(self):
00043         if self.__class__ != Dialect:
00044             self._valid = True
00045         self._validate()

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

def csv.Dialect._validate (   self) [private]

Definition at line 46 of file csv.py.

00046 
00047     def _validate(self):
00048         try:
00049             _Dialect(self)
00050         except TypeError as e:
00051             # We do this for compatibility with py2.3
00052             raise Error(str(e))

Here is the caller graph for this function:


Member Data Documentation

string csv.Dialect._name = "" [static, private]

Definition at line 30 of file csv.py.

csv.Dialect._valid = False [static, private]

Definition at line 31 of file csv.py.

csv.Dialect.delimiter = None [static]

Reimplemented in csv.unix_dialect, csv.excel_tab, and csv.excel.

Definition at line 33 of file csv.py.

csv.Dialect.doublequote = None [static]

Reimplemented in csv.unix_dialect, and csv.excel.

Definition at line 36 of file csv.py.

csv.Dialect.escapechar = None [static]

Reimplemented in test.test_csv.QuotedEscapedExcel, and test.test_csv.EscapedExcel.

Definition at line 35 of file csv.py.

csv.Dialect.lineterminator = None [static]

Reimplemented in suspicious.dialect, csv.unix_dialect, and csv.excel.

Definition at line 38 of file csv.py.

csv.Dialect.quotechar = None [static]

Reimplemented in csv.unix_dialect, and csv.excel.

Definition at line 34 of file csv.py.

csv.Dialect.quoting = None [static]

Reimplemented in csv.unix_dialect, and csv.excel.

Definition at line 37 of file csv.py.


The documentation for this class was generated from the following file: