summaryrefslogtreecommitdiff
path: root/Modules/_csv.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33029: Fix signatures of getter and setter functions. (GH-10746)Miss Islington (bot)2018-11-271-5/+5
| | | | | | Fix also return type for few other functions (clear, releasebuffer). (cherry picked from commit d4f9cf5545d6d8844e0726552ef2e366f5cc3abd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34395: Fix memory leaks caused by incautious usage of PyMem_Resize(). ↵Miss Islington (bot)2018-08-161-36/+15
| | | | | | | (GH-8756) (cherry picked from commit 67b9cc8e6072a919d2ed7e7ecc8124c8acfb3733) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-32255: Always quote a single empty field when write into a CSV file. (#4769)Licht Takeuchi2017-12-121-1/+1
| | | This allows to distinguish an empty row from a row consisting of a single empty field.
* Use NULL rather than 0. (#778)Serhiy Storchaka2017-03-231-8/+8
| | | | | There was few cases of using literal 0 instead of NULL in the context of pointers. While this was a legitimate C code, using NULL rather than 0 makes the code clearer.
* Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-231-8/+4
| | | | possible. Patch is writen with Coccinelle.
* Backed out changeset b9c9691c72c5Victor Stinner2016-12-041-1/+1
| | | | | | Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like _PyObject_CallArg1() uses more stack memory than PyObject_CallFunctionObjArgs().
* Replace PyObject_CallFunctionObjArgs() with fastcallVictor Stinner2016-12-011-1/+1
| | | | | | | | | | | | | | * PyObject_CallFunctionObjArgs(func, NULL) => _PyObject_CallNoArg(func) * PyObject_CallFunctionObjArgs(func, arg, NULL) => _PyObject_CallArg1(func, arg) PyObject_CallFunctionObjArgs() allocates 40 bytes on the C stack and requires extra work to "parse" C arguments to build a C array of PyObject*. _PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate memory on the C stack. This change is part of the fastcall project. The change on listsort() is related to the issue #23507.
* _csv: use _PyLong_AsInt()Victor Stinner2016-10-191-10/+4
|
* Issue #27809: _csv: _call_dialect() uses fast callVictor Stinner2016-08-231-9/+7
|
* merge 3.5 (closes #27758)Benjamin Peterson2016-08-131-4/+19
|\
| * merge 3.4 (closes #27758)Benjamin Peterson2016-08-131-4/+19
| |\
| | * merge 3.3 (#27758)Benjamin Peterson2016-08-131-4/+19
| | |\
| | | * check for overflow in join_append_data (closes #27758)Benjamin Peterson2016-08-131-4/+19
| | | | | | | | | | | | | | | | Reported by Thomas E. Hybel
* | | | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka2016-04-171-1/+1
|\ \ \ \ | |/ / / | | | | | | | | messages.
| * | | Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
| | | |
* | | | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-2/+2
|\ \ \ \ | |/ / /
| * | | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-2/+2
| | | |
* | | | Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka2015-12-251-4/+4
|/ / /
* | | Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-4/+2
| | | | | | | | | | | | macro Py_SETREF.
* | | Issue #25290: Fix typo in csv.reader() docstringBerker Peksag2015-10-021-1/+1
|\ \ \ | |/ / | | | | | | Patch by Johannes Niediek.
| * | Issue #25290: Fix typo in csv.reader() docstringBerker Peksag2015-10-021-1/+1
| | | | | | | | | | | | Patch by Johannes Niediek.
* | | Issue #23659: Document **fmtparams in csv.register_dialect docstring.Berker Peksag2015-06-051-1/+1
|\ \ \ | |/ / | | | | | | Initial patch by Brandon Milam.
| * | Issue #23659: Document **fmtparams in csv.register_dialect docstring.Berker Peksag2015-06-051-1/+1
| | | | | | | | | | | | Initial patch by Brandon Milam.
* | | Issue #23171: csv.Writer.writerow() now supports arbitrary iterables.Serhiy Storchaka2015-03-301-40/+39
| | |
* | | Issue #22156: Fix some "comparison between signed and unsigned integers"Victor Stinner2014-08-161-1/+1
| | | | | | | | | | | | compiler warnings in the Modules/ subdirectory.
* | | Issue #22076: Minor grammar fix.Berker Peksag2014-07-271-2/+2
|/ / | | | | | | Patch by Martin Matusiak.
* | Issue #18829: csv.Dialect() now checks type for delimiter, escapechar andSerhiy Storchaka2013-12-191-1/+8
|\ \ | |/ | | | | quotechar fields. Original patch by Vajrasky Kok.
| * Issue #18829: csv.Dialect() now checks type for delimiter, escapechar andSerhiy Storchaka2013-12-191-1/+8
| | | | | | | | quotechar fields. Original patch by Vajrasky Kok.
* | Issue #19437: Fix parse_save_field() of the csv module, handle PyList_Append()Victor Stinner2013-11-141-1/+4
| | | | | | | | failure
* | Use logic operator, not bitwise operator, for conditional.R David Murray2013-03-201-1/+1
| |
* | #15927: Fix cvs.reader parsing of escaped \r\n with quoting off.R David Murray2013-03-191-1/+12
|/ | | | | | | This fix means that such values are correctly roundtripped, since cvs.writer already does the correct escaping. Patch by Michael Johnson.
* Issue #16145: Support legacy strings in the _csv module.Stefan Krah2012-11-021-6/+15
|
* merge 3.2: Issue #16013: Fix CSV Reader parsing issue with ending quote ↵Senthil Kumaran2012-09-251-3/+8
|\ | | | | | | characters. Patch by Serhiy Storchaka.
| * Issue #16013: Fix CSV Reader parsing issue with ending quote characters. ↵Senthil Kumaran2012-09-251-3/+7
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-151-2/+6
|\ \ | |/ | | | | | | | | errors correctly. Patch by Serhiy Storchaka.
| * Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-151-2/+6
| | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka.
* | Issue #14732: The _csv module now uses PEP 3121 module initialization.Antoine Pitrou2012-05-161-35/+70
| | | | | | | | Patch by Robin Schreiber.
* | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()Victor Stinner2011-11-211-1/+1
| | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength()
* | Replace Py_UNICODE_strchr with PyUnicode_FindChar.Martin v. Löwis2011-11-011-6/+3
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| |
* | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-1/+2
| |
* | Fix a Py_UCS4 / Py_UNICODE mixup.Antoine Pitrou2011-10-071-3/+8
| | | | | | | | This worked under Unix because wchar_t is 4 bytes wide.
* | Migrate the _csv module to the new unicode APIsAntoine Pitrou2011-10-071-60/+61
| | | | | | | | (except for a Py_UNICODE_strchr() call)
* | fix compiler warningsBenjamin Peterson2011-10-061-4/+3
| |
* | Implement PEP 393.Martin v. Löwis2011-09-281-1/+1
|/
* Issue #10359: Remove useless (duplicate) initialization in _csvVictor Stinner2010-11-091-1/+1
|
* Fix more 64-bit warnings.Antoine Pitrou2010-08-151-14/+10
|
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1110/+1110
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-3/+3
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #1717, stage 2: remove uses of tp_compare in Modules and mostMark Dickinson2009-02-011-3/+3
| | | | Objects.