Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521) | Dong-hee Na | 2020-02-17 | 1 | -1/+1 |
| | |||||
* | bpo-39245: Switch to public API for Vectorcall (GH-18460) | Petr Viktorin | 2020-02-11 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bulk of this patch was generated automatically with: for name in \ PyObject_Vectorcall \ Py_TPFLAGS_HAVE_VECTORCALL \ PyObject_VectorcallMethod \ PyVectorcall_Function \ PyObject_CallOneArg \ PyObject_CallMethodNoArgs \ PyObject_CallMethodOneArg \ ; do echo $name git grep -lwz _$name | xargs -0 sed -i "s/\b_$name\b/$name/g" done old=_PyObject_FastCallDict new=PyObject_VectorcallDict git grep -lwz $old | xargs -0 sed -i "s/\b$old\b/$new/g" and then cleaned up: - Revert changes to in docs & news - Revert changes to backcompat defines in headers - Nudge misaligned comments | ||||
* | bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) | Victor Stinner | 2020-02-07 | 1 | -3/+3 |
| | | | Replace direct access to PyObject.ob_type with Py_TYPE(). | ||||
* | bpo-37994: Fix silencing all errors if an attribute lookup fails. (GH-15630) | Serhiy Storchaka | 2019-09-01 | 1 | -1/+4 |
| | | | Only AttributeError should be silenced. | ||||
* | bpo-37483: add _PyObject_CallOneArg() function (#14558) | Jeroen Demeyer | 2019-07-04 | 1 | -1/+1 |
| | |||||
* | Fix name of '\0'. (GH-14222) | Benjamin Peterson | 2019-06-19 | 1 | -1/+1 |
| | | | '\0' is the NUL byte not NULL. | ||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -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 Lapeyre | 2019-05-14 | 1 | -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 Storchaka | 2019-02-25 | 1 | -3/+7 |
| | |||||
* | bpo-33029: Fix signatures of getter and setter functions. (GH-10746) | Serhiy Storchaka | 2018-11-27 | 1 | -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 Storchaka | 2018-11-27 | 1 | -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 Fedoseev | 2018-08-16 | 1 | -36/+15 |
| | | | | (GH-8756) | ||||
* | bpo-34197: Make _csv.Dialect attributes booleans. (GH-8440) | Serhiy Storchaka | 2018-07-26 | 1 | -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) | oldk | 2018-02-02 | 1 | -4/+4 |
| | |||||
* | bpo-32255: Always quote a single empty field when write into a CSV file. (#4769) | Licht Takeuchi | 2017-12-12 | 1 | -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 Storchaka | 2017-03-23 | 1 | -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 wherever | Serhiy Storchaka | 2017-01-23 | 1 | -8/+4 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Backed out changeset b9c9691c72c5 | Victor Stinner | 2016-12-04 | 1 | -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 fastcall | Victor Stinner | 2016-12-01 | 1 | -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 Stinner | 2016-10-19 | 1 | -10/+4 |
| | |||||
* | Issue #27809: _csv: _call_dialect() uses fast call | Victor Stinner | 2016-08-22 | 1 | -9/+7 |
| | |||||
* | merge 3.5 (closes #27758) | Benjamin Peterson | 2016-08-14 | 1 | -4/+19 |
|\ | |||||
| * | merge 3.4 (closes #27758) | Benjamin Peterson | 2016-08-14 | 1 | -4/+19 |
| |\ | |||||
| | * | merge 3.3 (#27758) | Benjamin Peterson | 2016-08-14 | 1 | -4/+19 |
| | |\ | |||||
| | | * | check for overflow in join_append_data (closes #27758) | Benjamin Peterson | 2016-08-14 | 1 | -4/+19 |
| | | | | | | | | | | | | | | | | Reported by Thomas E. Hybel | ||||
* | | | | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
|\ \ \ \ | |/ / / | | | | | | | | | messages. | ||||
| * | | | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | | | | |||||
* | | | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -2/+2 |
|\ \ \ \ | |/ / / | |||||
| * | | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -2/+2 |
| | | | | |||||
* | | | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -4/+4 |
|/ / / | |||||
* | | | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -4/+2 |
| | | | | | | | | | | | | macro Py_SETREF. | ||||
* | | | Issue #25290: Fix typo in csv.reader() docstring | Berker Peksag | 2015-10-02 | 1 | -1/+1 |
|\ \ \ | |/ / | | | | | | | Patch by Johannes Niediek. | ||||
| * | | Issue #25290: Fix typo in csv.reader() docstring | Berker Peksag | 2015-10-02 | 1 | -1/+1 |
| | | | | | | | | | | | | Patch by Johannes Niediek. | ||||
* | | | Issue #23659: Document **fmtparams in csv.register_dialect docstring. | Berker Peksag | 2015-06-05 | 1 | -1/+1 |
|\ \ \ | |/ / | | | | | | | Initial patch by Brandon Milam. | ||||
| * | | Issue #23659: Document **fmtparams in csv.register_dialect docstring. | Berker Peksag | 2015-06-05 | 1 | -1/+1 |
| | | | | | | | | | | | | Initial patch by Brandon Milam. | ||||
* | | | Issue #23171: csv.Writer.writerow() now supports arbitrary iterables. | Serhiy Storchaka | 2015-03-30 | 1 | -40/+39 |
| | | | |||||
* | | | Issue #22156: Fix some "comparison between signed and unsigned integers" | Victor Stinner | 2014-08-15 | 1 | -1/+1 |
| | | | | | | | | | | | | compiler warnings in the Modules/ subdirectory. | ||||
* | | | Issue #22076: Minor grammar fix. | Berker Peksag | 2014-07-27 | 1 | -2/+2 |
|/ / | | | | | | | Patch by Martin Matusiak. | ||||
* | | Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and | Serhiy Storchaka | 2013-12-19 | 1 | -1/+8 |
|\ \ | |/ | | | | | quotechar fields. Original patch by Vajrasky Kok. | ||||
| * | Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and | Serhiy Storchaka | 2013-12-19 | 1 | -1/+8 |
| | | | | | | | | quotechar fields. Original patch by Vajrasky Kok. | ||||
* | | Issue #19437: Fix parse_save_field() of the csv module, handle PyList_Append() | Victor Stinner | 2013-11-14 | 1 | -1/+4 |
| | | | | | | | | failure | ||||
* | | Use logic operator, not bitwise operator, for conditional. | R David Murray | 2013-03-20 | 1 | -1/+1 |
| | | |||||
* | | #15927: Fix cvs.reader parsing of escaped \r\n with quoting off. | R David Murray | 2013-03-20 | 1 | -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 Krah | 2012-11-02 | 1 | -6/+15 |
| | |||||
* | merge 3.2: Issue #16013: Fix CSV Reader parsing issue with ending quote ↵ | Senthil Kumaran | 2012-09-25 | 1 | -3/+8 |
|\ | | | | | | | characters. Patch by Serhiy Storchaka. | ||||
| * | Issue #16013: Fix CSV Reader parsing issue with ending quote characters. ↵ | Senthil Kumaran | 2012-09-25 | 1 | -3/+7 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 1 | -2/+6 |
|\ \ | |/ | | | | | | | | | errors correctly. Patch by Serhiy Storchaka. | ||||
| * | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 1 | -2/+6 |
| | | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka. | ||||
* | | Issue #14732: The _csv module now uses PEP 3121 module initialization. | Antoine Pitrou | 2012-05-16 | 1 | -35/+70 |
| | | | | | | | | Patch by Robin Schreiber. | ||||
* | | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() | Victor Stinner | 2011-11-21 | 1 | -1/+1 |
| | | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength() |