Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.12] gh-80527: Change support.requires_legacy_unicode_capi() (GH-108438) ↵ | Miss Islington (bot) | 2023-08-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | (#108446) gh-80527: Change support.requires_legacy_unicode_capi() (GH-108438) The decorator now requires to be called with parenthesis: @support.requires_legacy_unicode_capi() instead of: @support.requires_legacy_unicode_capi The implementation now only imports _testcapi when the decorator is called, so "import test.support" no longer imports the _testcapi extension. (cherry picked from commit 995f4c48e11349fbfb9233e02b732d4534d3008e) Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | gh-104265 Disallow instantiation of `_csv.Reader` and `_csv.Writer` (#104266) | chgnrdv | 2023-05-07 | 1 | -1/+8 |
| | |||||
* | gh-67230: add quoting rules to csv module (GH-29469) | Skip Montanaro | 2023-04-12 | 1 | -0/+4 |
| | | | | | | Add two quoting styles for csv dialects. They will help to work with certain databases in particular. Automerge-Triggered-By: GH:merwok | ||||
* | bpo-44512: Fix handling of extrasactions arg to csv.DictWriter with mixed or ↵ | andrei kulakov | 2022-12-09 | 1 | -0/+8 |
| | | | | upper case (#26924) | ||||
* | gh-65496: Correct wording on csv's skipinitialspace argument (#96170) | Stanley | 2022-10-07 | 1 | -0/+5 |
| | |||||
* | gh-95950: Add a test for both `csv.Dialect` and `kwargs` (#95951) | Nikita Sobolev | 2022-08-29 | 1 | -0/+28 |
| | |||||
* | gh-76728: Coerce DictReader and DictWriter fieldnames argument to a list ↵ | Sam Ezeh | 2022-08-25 | 1 | -0/+28 |
| | | | | (GH-32225) | ||||
* | bpo-20028: Empty escapechar/quotechar is not allowed for csv.Dialect (GH-28833) | Dong-hee Na | 2021-10-11 | 1 | -1/+12 |
| | |||||
* | bpo-27580: Add support of null characters in the csv module. (GH-28808) | Serhiy Storchaka | 2021-10-09 | 1 | -5/+39 |
| | |||||
* | bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705) | Dong-hee Na | 2021-10-09 | 1 | -1/+30 |
| | |||||
* | bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939) | andrei kulakov | 2021-07-30 | 1 | -0/+36 |
| | |||||
* | bpo-44630: Fix assertion errors in csv module (GH-27127) | T. Wouters | 2021-07-13 | 1 | -0/+6 |
| | | | | | | | | | | | | | Fix incorrect handling of exceptions when interpreting dialect objects in the csv module. Not clearing exceptions between calls to PyObject_GetAttrString() causes assertion failures in pydebug mode (or with assertions enabled). Add a minimal test that would've caught this (passing None as dialect, or any object that isn't a csv.Dialect subclass, which the csv module allows and caters to, even though it is not documented.) In pydebug mode, the test triggers the assertion failure in the old code. Contributed-By: T. Wouters [Google] | ||||
* | bpo-28395: Remove unnecessary semicolons in tests (GH-26868) | Dong-hee Na | 2021-06-23 | 1 | -1/+1 |
| | |||||
* | bpo-44089: Allow subclassing of ``csv.Error`` (GH-26008) | Ken Jin | 2021-05-12 | 1 | -0/+3 |
| | | | | | * fix subclass error * Update 2021-05-09-22-52-34.bpo-44089.IoANsN.rst | ||||
* | bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) | Inada Naoki | 2021-04-04 | 1 | -28/+28 |
| | | | | | | | | | | | | | | | | | | | * test_asyncio * test_bz2 * test_math * test_cmath * test_cmd_line * test_cmd_line_script * test_compile * test_contextlib * test_profile * ctypes/test/test_find * test_multiprocessing * test_configparser * test_csv * test_dbm_dumb * test_decimal * test_difflib * os.fdopen() calls io.text_encoding() to emit EncodingWarning for right place. | ||||
* | bpo-12178: Fix escaping of escapechar in csv.writer() (GH-13710) | Berker Peksag | 2020-09-20 | 1 | -0/+14 |
| | | | Co-authored-by: Itay Elbirt <anotahacou@gmail.com> | ||||
* | bpo-41338: Fix DeprecationWarning in tests (GH-21542) | Inada Naoki | 2020-07-20 | 1 | -0/+2 |
| | |||||
* | bpo-36346: Make using the legacy Unicode C API optional (GH-21437) | Serhiy Storchaka | 2020-07-10 | 1 | -1/+1 |
| | | | | Add compile time option USE_UNICODE_WCHAR_CACHE. Setting it to 0 makes the interpreter not using the wchar_t cache and the legacy Unicode C API. | ||||
* | bpo-26407: Do not mask errors in csv. (GH-20536) | Serhiy Storchaka | 2020-06-22 | 1 | -1/+19 |
| | | | | | Unexpected errors in calling the __iter__ method are no longer masked by TypeError in csv.reader(), csv.writer.writerow() and csv.writer.writerows(). | ||||
* | bpo-27497: Add return value to csv.DictWriter.writeheader (GH-12306) | Rémi Lapeyre | 2019-05-10 | 1 | -0/+6 |
| | | | | | | csv.DictWriter.writeheader() now returns the return value of the underlying csv.Writer.writerow() method. Patch contributed by Ashish Nitin Patil. | ||||
* | bpo-34197: Make _csv.Dialect attributes booleans. (GH-8440) | Serhiy Storchaka | 2018-07-26 | 1 | -21/+19 |
| | | | | Attributes skipinitialspace, doublequote and strict are now booleans instead of integers 0 or 1. | ||||
* | bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) | Serhiy Storchaka | 2018-02-09 | 1 | -0/+10 |
| | | | | Co-authored-by: Jake Davis <jcdavis@awedge.net> | ||||
* | bpo-32255: Always quote a single empty field when write into a CSV file. (#4769) | Licht Takeuchi | 2017-12-12 | 1 | -1/+20 |
| | | | This allows to distinguish an empty row from a row consisting of a single empty field. | ||||
* | Issue #18219: Optimize csv.DictWriter for large number of columns. | INADA Naoki | 2016-10-21 | 1 | -0/+18 |
| | | | | Patch by Mariatta Wijaya. | ||||
* | Issue #27895: Strengthen the dict reader tests. | Raymond Hettinger | 2016-08-30 | 1 | -0/+38 |
| | |||||
* | Issue #27842: The csv.DictReader now returns rows of type OrderedDict. | Raymond Hettinger | 2016-08-30 | 1 | -0/+16 |
| | |||||
* | Issue #23277: Remove unused imports in tests. | Serhiy Storchaka | 2016-04-24 | 1 | -3/+0 |
| | |||||
* | Issue #23277: Remove unused sys and os imports | Berker Peksag | 2016-04-24 | 1 | -1/+0 |
| | | | | Patch by Jon Dufresne. | ||||
* | Issue #22995: Instances of extension types with a state that aren't | Serhiy Storchaka | 2015-12-25 | 1 | -0/+13 |
|\ | | | | | | | | | | | subclasses of list or dict and haven't implemented any pickle-related methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no longer be pickled. Including memoryview. | ||||
| * | Issue #22995: Instances of extension types with a state that aren't | Serhiy Storchaka | 2015-12-25 | 1 | -0/+13 |
| | | | | | | | | | | | | subclasses of list or dict and haven't implemented any pickle-related methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no longer be pickled. Including memoryview. | ||||
* | | Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej | Martin Panter | 2015-11-14 | 1 | -0/+6 |
|/ | |||||
* | Issue #21741: Update 147 test modules to use test discovery. | Zachary Ware | 2015-04-13 | 1 | -7/+1 |
| | | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run. | ||||
* | Issue #23171: csv.Writer.writerow() now supports arbitrary iterables. | Serhiy Storchaka | 2015-03-30 | 1 | -0/+8 |
| | |||||
* | Check that failed writerow() doesn't produce change a file. | Serhiy Storchaka | 2015-03-25 | 1 | -14/+16 |
|\ | |||||
| * | Check that failed writerow() doesn't produce change a file. | Serhiy Storchaka | 2015-03-25 | 1 | -14/+16 |
| | | |||||
* | | Issue #22076: Minor grammar fix. | Berker Peksag | 2014-07-27 | 1 | -3/+3 |
| | | | | | | | | Patch by Martin Matusiak. | ||||
* | | Issue #18727: improve test coverage of the csv module by testing for ↵ | Antoine Pitrou | 2014-04-28 | 1 | -0/+10 |
|/ | | | | | | DictWriter.writerows. Patch by Muhammad Jehanzeb. | ||||
* | (Merge 3.3) Issue #18829: Add tests for the csv module for invalid characters | Victor Stinner | 2014-01-02 | 1 | -0/+14 |
|\ | | | | | | | (delimiter, escapechar, quotechar) | ||||
| * | Issue #18829: Add tests for the csv module for invalid characters (delimiter, | Victor Stinner | 2014-01-02 | 1 | -0/+13 |
| | | | | | | | | escapechar, quotechar) | ||||
* | | Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and | Serhiy Storchaka | 2013-12-19 | 1 | -5/+39 |
|\ \ | |/ | | | | | quotechar fields. Original patch by Vajrasky Kok. | ||||
| * | Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and | Serhiy Storchaka | 2013-12-19 | 1 | -5/+39 |
| | | | | | | | | quotechar fields. Original patch by Vajrasky Kok. | ||||
* | | Merge: #19449: Handle non-string keys when generating 'fieldnames' error. | R David Murray | 2013-11-19 | 1 | -0/+12 |
|\ \ | |/ | |||||
| * | #19449: Handle non-string keys when generating 'fieldnames' error. | R David Murray | 2013-11-19 | 1 | -0/+12 |
| | | | | | | | | | | | | | | csv was handling non-string keys fine except for the error message generated when a non-string key was not in 'fieldnames'. Fix by Tomas Grahn, full patch-with-test by Vajrasky Kok (tweaked slightly). | ||||
| * | Issue #18702: All skipped tests now reported as skipped. | Serhiy Storchaka | 2013-11-03 | 1 | -72/+71 |
| | | |||||
* | | Issue #18702: All skipped tests now reported as skipped. | Serhiy Storchaka | 2013-11-03 | 1 | -72/+71 |
| | | |||||
* | | Merge #18155: Regex-escape delimiter, in case it is a regex special char. | R David Murray | 2013-06-29 | 1 | -3/+39 |
|\ \ | |/ | |||||
| * | #18155: Regex-escape delimiter, in case it is a regex special char. | R David Murray | 2013-06-29 | 1 | -3/+39 |
| | | | | | | | | Patch by Vajrasky Kok, with slight modification to the tests by me. | ||||
* | | #15927: Fix cvs.reader parsing of escaped \r\n with quoting off. | R David Murray | 2013-03-20 | 1 | -0/+9 |
| | | | | | | | | | | | | | | This fix means that such values are correctly roundtripped, since cvs.writer already does the correct escaping. Patch by Michael Johnson. | ||||
* | | Replace IOError with OSError (#16715) | Andrew Svetlov | 2012-12-25 | 1 | -6/+6 |
|/ | |||||
* | Issue #16145: Support legacy strings in the _csv module. | Stefan Krah | 2012-11-02 | 1 | -0/+11 |
| |