summaryrefslogtreecommitdiff
path: root/Modules/_csv.c
AgeCommit message (Collapse)AuthorLines
2019-06-18Fix name of '\0'. (GH-14222)Miss Islington (bot)-1/+1
'\0' is the NUL byte not NULL. (cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00) Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-11-27bpo-33029: Fix signatures of getter and setter functions. (GH-10746)Miss Islington (bot)-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>
2018-08-16bpo-34395: Fix memory leaks caused by incautious usage of PyMem_Resize(). ↵Miss Islington (bot)-36/+15
(GH-8756) (cherry picked from commit 67b9cc8e6072a919d2ed7e7ecc8124c8acfb3733) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2017-12-12bpo-32255: Always quote a single empty field when write into a CSV file. (#4769)Licht Takeuchi-1/+1
This allows to distinguish an empty row from a row consisting of a single empty field.
2017-03-23Use NULL rather than 0. (#778)Serhiy Storchaka-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.
2017-01-23Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka-8/+4
possible. Patch is writen with Coccinelle.
2016-12-04Backed out changeset b9c9691c72c5Victor Stinner-1/+1
Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like _PyObject_CallArg1() uses more stack memory than PyObject_CallFunctionObjArgs().
2016-12-01Replace PyObject_CallFunctionObjArgs() with fastcallVictor Stinner-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.
2016-10-19_csv: use _PyLong_AsInt()Victor Stinner-10/+4
2016-08-23Issue #27809: _csv: _call_dialect() uses fast callVictor Stinner-9/+7
2016-08-13merge 3.5 (closes #27758)Benjamin Peterson-4/+19
2016-08-13merge 3.4 (closes #27758)Benjamin Peterson-4/+19
2016-08-13merge 3.3 (#27758)Benjamin Peterson-4/+19
2016-08-13check for overflow in join_append_data (closes #27758)Benjamin Peterson-4/+19
Reported by Thomas E. Hybel
2016-04-17Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka-1/+1
messages.
2016-04-17Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka-1/+1
2016-04-06Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka-2/+2
2016-04-06Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka-2/+2
2015-12-25Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka-4/+4
2015-12-24Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka-4/+2
macro Py_SETREF.
2015-10-02Issue #25290: Fix typo in csv.reader() docstringBerker Peksag-1/+1
Patch by Johannes Niediek.
2015-10-02Issue #25290: Fix typo in csv.reader() docstringBerker Peksag-1/+1
Patch by Johannes Niediek.
2015-06-05Issue #23659: Document **fmtparams in csv.register_dialect docstring.Berker Peksag-1/+1
Initial patch by Brandon Milam.
2015-06-05Issue #23659: Document **fmtparams in csv.register_dialect docstring.Berker Peksag-1/+1
Initial patch by Brandon Milam.
2015-03-30Issue #23171: csv.Writer.writerow() now supports arbitrary iterables.Serhiy Storchaka-40/+39
2014-08-16Issue #22156: Fix some "comparison between signed and unsigned integers"Victor Stinner-1/+1
compiler warnings in the Modules/ subdirectory.
2014-07-27Issue #22076: Minor grammar fix.Berker Peksag-2/+2
Patch by Martin Matusiak.
2013-12-19Issue #18829: csv.Dialect() now checks type for delimiter, escapechar andSerhiy Storchaka-1/+8
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19Issue #18829: csv.Dialect() now checks type for delimiter, escapechar andSerhiy Storchaka-1/+8
quotechar fields. Original patch by Vajrasky Kok.
2013-11-14Issue #19437: Fix parse_save_field() of the csv module, handle PyList_Append()Victor Stinner-1/+4
failure
2013-03-20Use logic operator, not bitwise operator, for conditional.R David Murray-1/+1
2013-03-19#15927: Fix cvs.reader parsing of escaped \r\n with quoting off.R David Murray-1/+12
This fix means that such values are correctly roundtripped, since cvs.writer already does the correct escaping. Patch by Michael Johnson.
2012-11-02Issue #16145: Support legacy strings in the _csv module.Stefan Krah-6/+15
2012-09-25merge 3.2: Issue #16013: Fix CSV Reader parsing issue with ending quote ↵Senthil Kumaran-3/+8
characters. Patch by Serhiy Storchaka.
2012-09-25Issue #16013: Fix CSV Reader parsing issue with ending quote characters. ↵Senthil Kumaran-3/+7
Patch by Serhiy Storchaka.
2012-08-15Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou-2/+6
errors correctly. Patch by Serhiy Storchaka.
2012-08-15Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou-2/+6
errors correctly. Patch by Serhiy Storchaka.
2012-05-16Issue #14732: The _csv module now uses PEP 3121 module initialization.Antoine Pitrou-35/+70
Patch by Robin Schreiber.
2011-11-21Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()Victor Stinner-1/+1
And PyUnicode_GetSize() => PyUnicode_GetLength()
2011-11-01Replace Py_UNICODE_strchr with PyUnicode_FindChar.Martin v. Löwis-6/+3
2011-10-14Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis-1/+1
2011-10-10Use identifier API for PyObject_GetAttrString.Martin v. Löwis-1/+2
2011-10-07Fix a Py_UCS4 / Py_UNICODE mixup.Antoine Pitrou-3/+8
This worked under Unix because wchar_t is 4 bytes wide.
2011-10-07Migrate the _csv module to the new unicode APIsAntoine Pitrou-60/+61
(except for a Py_UNICODE_strchr() call)
2011-10-06fix compiler warningsBenjamin Peterson-4/+3
2011-09-28Implement PEP 393.Martin v. Löwis-1/+1
2010-11-09Issue #10359: Remove useless (duplicate) initialization in _csvVictor Stinner-1/+1
2010-08-15Fix more 64-bit warnings.Antoine Pitrou-14/+10
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-1048/+1048
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. ........
2009-02-02Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson-3/+3
type of tp_compare in a separate commit, for ease of reversion should things go wrong.