Fred Drake
a650fb3d6f
fix minor markup error that introduced extra punctuation
2006-07-29 20:21:25 +00:00
Skip Montanaro
abd51a3585
Add a comment to the csv reader documentation that explains why the
...
treatment of newlines changed in 2.5. Pulled almost verbatim from a comment
by Andrew McNamara in <http://python.org/sf/1465014 >.
2006-07-29 20:06:05 +00:00
Walter Dörwald
f7bc5f9455
Change the example classes UnicodeReader and UnicodeWriter so
...
that they work with all encodings. For UnicodeReader the real
input stream is wrapped in a line iterator that reencodes the
input to UTF-8. For UnicodeWriter the UTF-8 encoded output is
written to a queue for where it is reencoded to the target
encoding and written to the real output stream.
2006-04-04 17:32:49 +00:00
David Goodger
cb30f97bd3
added another example of Unicode CSV parsing; reworked the example text a bit; corrected notice in the intro and added a link to the examples
2006-04-04 03:05:44 +00:00
Georg Brandl
58780d2642
Bug #1440831 : fix csv UnicodeWriter example
2006-03-07 13:47:22 +00:00
Thomas Wouters
bbdf6078f6
Fix broken example of csv.reader use (it returns an iterator, which isn't
...
indexable) by using the same 'for' construct as all other examples. (Also
emphasizes that reading from a random iterable is no different than reading
from a file.)
2006-02-16 14:57:05 +00:00
Skip Montanaro
8bdaac7f95
typo
2005-12-28 15:56:58 +00:00
Skip Montanaro
5011c3f7fc
add UnicodeReader and UnicodeWriter example classes
2005-03-18 16:56:37 +00:00
Andrew McNamara
8231de0513
Many updates to csv module doco.
2005-01-12 11:47:57 +00:00
Skip Montanaro
bb0c9dc852
add a couple missing items
2005-01-05 06:58:15 +00:00
Andrew M. Kuchling
6f937b1c30
[Bug #998307 ] Use open() instead of file() in docs
2004-08-07 15:11:24 +00:00
Skip Montanaro
2b2795ac6d
show how easy it is to manipulate individual columns - from a request on
...
c.l.py
2004-07-08 19:49:10 +00:00
Skip Montanaro
10659f2540
bring description of optional and keyword args for DictReader and DictWriter
...
classes into line with the actual code. I didn't see any obvious examples
of latex formatting for *args and **kwds so I just guessed.
2004-04-16 03:21:01 +00:00
Skip Montanaro
bdda9f389a
The example files need to be opened with the "b" flag.
2004-03-17 01:24:17 +00:00
Skip Montanaro
ba0485a92d
expand on notion of row object type
2004-01-21 13:47:04 +00:00
Skip Montanaro
7895146c40
typo
2004-01-21 13:34:35 +00:00
Skip Montanaro
dffeed3ffa
Make the fieldnames argument optional in the DictReader. If self.fieldnames
...
is None, the next row read is used as the fieldnames. In the common case,
this means the programmer doesn't need to know the fieldnames ahead of time.
The first row of the file will be used. In the uncommon case, this means
the programmer can set the reader's fieldnames attribute to None at any time
and have the next row read as the next set of fieldnames, so a csv file can
contain several "sections", each with different fieldnames.
2003-10-03 14:03:01 +00:00
Raymond Hettinger
6e380cd1d8
SF bug #803679 : Missing section number in csv module documentation
2003-09-10 18:54:49 +00:00
Raymond Hettinger
6f6d7b93bc
SF bug #797853 : Small problems with the csv module's documentation
2003-08-31 05:44:54 +00:00
Skip Montanaro
5e4e39f12a
Note that csv files (when they are actual files) must be opened in 'b'inary
...
mode. Note that the only restriction on the csvfile passed to writer
objects is that it have a write method.
2003-07-02 15:32:48 +00:00
Skip Montanaro
a1045567e0
QUOTE_ALWAYS -> QUOTE_ALL
2003-06-04 15:30:13 +00:00
Skip Montanaro
7789237331
* Correct Sniffer doc to correspond to the implementation.
...
* Add optional delimiters arg to Sniffer.sniff() which restricts the set of
candidate field delimiters.
2003-05-19 15:33:36 +00:00
Fred Drake
9635268ea9
organizational and markup cleansing
2003-04-25 18:02:34 +00:00
Skip Montanaro
5d0136e297
reflect csv's change back to a module. Document the new sniffer api.
2003-04-25 15:14:49 +00:00
Skip Montanaro
3bd3c8403a
* minor tweaks relating to the package nature of the beast
...
* added an (incomplete) description of the utils.Sniffer class
2003-04-24 18:47:31 +00:00
Skip Montanaro
b4a0417e91
new CSV file processing module - see PEP 305
2003-03-20 23:29:12 +00:00