[Python-checkins] python/dist/src/Lib csv.py,1.10,1.11

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Wed Jan 5 07:55:00 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31929

Modified Files:
	csv.py 
Log Message:
add a couple missing docstrings


Index: csv.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/csv.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- csv.py	3 Oct 2003 14:03:01 -0000	1.10
+++ csv.py	5 Jan 2005 06:54:58 -0000	1.11
@@ -20,6 +20,13 @@
             "unregister_dialect", "__version__", "DictReader", "DictWriter" ]
 
 class Dialect:
+    """Describe an Excel dialect.
+
+    This must be subclassed (see csv.excel).  Valid attributes are:
+    delimiter, quotechar, escapechar, doublequote, skipinitialspace,
+    lineterminator, quoting.
+
+    """
     _name = ""
     _valid = False
     # placeholders
@@ -78,6 +85,7 @@
         return errors
 
 class excel(Dialect):
+    """Describe the usual properties of Excel-generated CSV files."""
     delimiter = ','
     quotechar = '"'
     doublequote = True
@@ -87,6 +95,7 @@
 register_dialect("excel", excel)
 
 class excel_tab(excel):
+    """Describe the usual properties of Excel-generated TAB-delimited files."""
     delimiter = '\t'
 register_dialect("excel-tab", excel_tab)
 



More information about the Python-checkins mailing list