Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #13573: The csv.writer now uses the repr() for floats rather than str(). | Raymond Hettinger | 2011-12-12 | 1 | -2/+14 |
| | |||||
* | Merged revisions 86940 via svnmerge from | Éric Araujo | 2010-12-02 | 1 | -12/+7 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86940 | eric.araujo | 2010-12-02 23:16:19 +0100 (jeu., 02 déc. 2010) | 2 lines Fix wrong test code in test_csv (#10602) ........ | ||||
* | Try to fix buildbot breakage from r78384. | Dirkjan Ochtman | 2010-03-04 | 1 | -1/+2 |
| | | | | Thanks bitdancer and briancurtin for the help. | ||||
* | Fix #1537721: add writeheader() method to csv.DictWriter. | Dirkjan Ochtman | 2010-02-23 | 1 | -0/+4 |
| | | | | Reviewed by skip.montanaro and thomas.wouters. | ||||
* | Fix two redefined test methods. | Georg Brandl | 2010-02-07 | 1 | -2/+2 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -1/+1 |
| | |||||
* | Patch from Thomas Barr so that csv.Sniffer will set doublequote property. | Skip Montanaro | 2009-09-28 | 1 | -1/+8 |
| | | | | Closes issue 6606. | ||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -4/+4 |
| | |||||
* | Add tests checking the CSV module's ability to handle | R. David Murray | 2009-04-01 | 1 | -0/+18 |
| | | | | embedded newlines in quoted field values. | ||||
* | accept issue 3436 | Skip Montanaro | 2008-08-08 | 1 | -0/+33 |
| | |||||
* | Issue #2432: give DictReader the dialect and line_num attributes | Georg Brandl | 2008-03-21 | 1 | -10/+12 |
| | | | | advertised in the docs. | ||||
* | Sane humans would call these invalid tests, but Andrew McNamara pointed out | Skip Montanaro | 2007-03-12 | 1 | -0/+4 |
| | | | | | that given the inputs in these tests Excel does indeed produce the output these tests expect. Document that for future confused folks. | ||||
* | ("Forward-port" of r46506) | Armin Rigo | 2006-05-28 | 1 | -1/+4 |
| | | | | | | | | | | | | | | Remove various dependencies on dictionary order in the standard library tests, and one (clearly an oversight, potentially critical) in the standard library itself - base64.py. Remaining open issues: * test_extcall is an output test, messy to make robust * tarfile.py has a potential bug here, but I'm not familiar enough with this code. Filed in as SF bug #1496501. * urllib2.HTTPPasswordMgr() returns a random result if there is more than one matching root path. I'm asking python-dev for clarification... | ||||
* | 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 |