summaryrefslogtreecommitdiffstats
path: root/Modules/_csv.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37994: Fix silencing all errors if an attribute lookup fails. (GH-15630)Serhiy Storchaka2019-09-011-1/+4
| | | Only AttributeError should be silenced.
* bpo-37483: add _PyObject_CallOneArg() function (#14558)Jeroen Demeyer2019-07-041-1/+1
|
* Fix name of '\0'. (GH-14222)Benjamin Peterson2019-06-191-1/+1
| | | '\0' is the NUL byte not NULL.
* bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵Jeroen Demeyer2019-05-311-6/+6
| | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async
* Change WriterObj.writeline to WriterObj.write (GH-12344)Rémi Lapeyre2019-05-141-10/+12
| | | This cleans the csv module a bit, I don't think it requires a bpo issue or a news entry.
* bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112)Serhiy Storchaka2019-02-251-3/+7
|
* bpo-33029: Fix signatures of getter and setter functions. (GH-10746)Serhiy Storchaka2018-11-271-5/+5
| | | Fix also return type for few other functions (clear, releasebuffer).
* bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)Serhiy Storchaka2018-11-271-3/+3
| | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code.
* bpo-34395: Fix memory leaks caused by incautious usage of PyMem_Resize(). ↵Sergey Fedoseev2018-08-161-36/+15
| | | | (GH-8756)
* bpo-34197: Make _csv.Dialect attributes booleans. (GH-8440)Serhiy Storchaka2018-07-261-15/+16
| | | | Attributes skipinitialspace, doublequote and strict are now booleans instead of integers 0 or 1.
* bpo-32747: Remove trailing spaces in docstrings. (GH-5491)oldk2018-02-021-4/+4
|
* 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-221-9/+7
|
* merge 3.5 (closes #27758)Benjamin Peterson2016-08-141-4/+19
|\
| * merge 3.4 (closes #27758)Benjamin Peterson2016-08-141-4/+19
| |\
| | * merge 3.3 (#27758)Benjamin Peterson2016-08-141-4/+19
| | |\
| | | * check for overflow in join_append_data (closes #27758)Benjamin Peterson2016-08-141-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-151-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-201-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
| |