Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a delimiter detection problem in sniffer. Sniffing "a|b|c\r\n" was | Skip Montanaro | 2005-12-30 | 1 | -0/+7 |
| | | | | | | | | returning 'a' as the delimiter. It now returns '|', but not because I understood better what the code was supposed to do. Would someone that understands the idea behind _guess_delimiter() (see its doc string) look to see if my fallback choice is better than before or if it's just serendipity that I picked the proper delimiter? | ||||
* | Fix for problem with Sniffer class. If your delimiter is whitespace and the | Skip Montanaro | 2005-12-28 | 1 | -1/+4 |
| | | | | | | last field was empty it would strip the delimiter and incorrectly guess that "" was the delimiter. Reported in c.l.py by Laurent Laporte. Will backport. | ||||
* | Fix tests dependent on the exception raised by non-settable descriptors. | Barry Warsaw | 2005-04-20 | 1 | -2/+3 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2005-01-13 | 1 | -7/+7 |
| | |||||
* | Add counting of source iterator lines to the reader object - handy for | Andrew McNamara | 2005-01-12 | 1 | -1/+13 |
| | | | | | user error messages (otherwise difficult to do without instrumenting the source). | ||||
* | When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fields | Andrew McNamara | 2005-01-12 | 1 | -0/+6 |
| | | | | to floats. | ||||
* | Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test. | Andrew McNamara | 2005-01-12 | 1 | -0/+2 |
| | |||||
* | When using QUOTE_NONNUMERIC, we now test for "numericness" with | Andrew McNamara | 2005-01-12 | 1 | -10/+20 |
| | | | | | | | | PyNumber_Check, rather than trying to convert to a float. Reimplemented writer - now raises exceptions when it sees a quotechar but neither doublequote or escapechar are set. Doublequote results are now more consistent (eg, single quote should generate """", rather than "", which is ambiguous). | ||||
* | Rename csv.set_field_limit to csv.field_size_limit (since it both sets and | Andrew McNamara | 2005-01-12 | 1 | -7/+7 |
| | | | | gets). | ||||
* | Improve test coverage fractionally. | Andrew McNamara | 2005-01-12 | 1 | -9/+23 |
| | |||||
* | Set an upper limit on the size of the field buffer, raise an exception | Andrew McNamara | 2005-01-11 | 1 | -2/+9 |
| | | | | | | | when this limit is reached. Limit defaults to 128k, and is changed by module set_field_limit() method. Previously, an unmatched quote character could result in the entire file being read into the field buffer, potentially exhausting virtual memory. | ||||
* | Replace python-coded validation of csv dialect with a call to the C | Andrew McNamara | 2005-01-11 | 1 | -4/+0 |
| | | | | dialect type (which has a better idea of what is and isn't valid). | ||||
* | No longer attempt to instantiate python classes describing dialects. This | Andrew McNamara | 2005-01-11 | 1 | -18/+0 |
| | | | | | | was done because we were previously performing validation of the dialect from python, but this is now down within the C module. Also, the method we were using to detect classes did not work with new-style classes. | ||||
* | Allow dialect-describing keywords to be supplied to register_dialect, | Andrew McNamara | 2005-01-11 | 1 | -1/+10 |
| | | | | | record objects of internal dialect type, rather than instances of python objects. | ||||
* | Fix parsing of csv files with escapes (escape character previously would be | Andrew McNamara | 2005-01-10 | 1 | -2/+2 |
| | | | | left in stream). | ||||
* | Whitespace normalization. | Tim Peters | 2005-01-07 | 1 | -1/+1 |
| | |||||
* | Improved the implementation of the internal "dialect" type. The new | Andrew McNamara | 2005-01-07 | 1 | -24/+99 |
| | | | | | implementation features better error reporting, and better compliance with the PEP. | ||||
* | Whitespace normalization. | Tim Peters | 2004-07-08 | 1 | -3/+3 |
| | |||||
* | Rewrote to use temporary files instead of StringIO objects in most places. | Skip Montanaro | 2004-06-05 | 1 | -113/+253 |
| | | | | Goal is to work in the direction of universal newline support. | ||||
* | Make the fieldnames argument optional in the DictReader. If self.fieldnames | Skip Montanaro | 2003-10-03 | 1 | -1/+10 |
| | | | | | | | | | 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. | ||||
* | **kwds arg was missing from __init__ for Dict{Reader,Writer} classes. | Skip Montanaro | 2003-09-06 | 1 | -0/+7 |
| | | | | will backport. | ||||
* | add a couple test cases which involve longs and floats in 'e' format. | Skip Montanaro | 2003-06-12 | 1 | -0/+23 |
| | |||||
* | * Correct Sniffer doc to correspond to the implementation. | Skip Montanaro | 2003-05-19 | 1 | -0/+15 |
| | | | | | * Add optional delimiters arg to Sniffer.sniff() which restricts the set of candidate field delimiters. | ||||
* | add not-yet-supported Unicode test just so it doesn't get lost. | Skip Montanaro | 2003-05-06 | 1 | -0/+20 |
| | |||||
* | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 1 | -11/+7 |
| | | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807. | ||||
* | some sniffer tests | Skip Montanaro | 2003-04-25 | 1 | -0/+34 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2003-04-24 | 1 | -12/+12 |
| | |||||
* | hoist contents of csv submodule up to the package level | Skip Montanaro | 2003-04-10 | 1 | -1/+1 |
| | |||||
* | The message "*** skipping leakage tests ***" was causing the test to | Guido van Rossum | 2003-03-21 | 1 | -1/+2 |
| | | | | fail in a non-debug build. Only print this in verbose test mode. | ||||
* | new CSV file processing module - see PEP 305 | Skip Montanaro | 2003-03-20 | 1 | -0/+619 |