Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-38631: Avoid Py_FatalError() in _multibytecodec init (GH-17233) | Victor Stinner | 2019-11-18 | 1 | -1/+0 |
| | | | | | If an exception is raised and PyInit__multibytecodec() returns NULL, Python reports properly the exception to the user. There is no need to crash Python with Py_FatalError(). | ||||
* | bpo-37206: Unrepresentable default values no longer represented as None. ↵ | Serhiy Storchaka | 2019-09-14 | 1 | -4/+4 |
| | | | | | | | (GH-13933) In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values (like in the optional third parameter of getattr). "None" should be used if None is accepted as argument and passing None has the same effect as not passing the argument at all. | ||||
* | bpo-37547: add _PyObject_CallMethodOneArg (GH-14685) | Jeroen Demeyer | 2019-07-11 | 1 | -2/+2 |
| | |||||
* | bpo-37483: add _PyObject_CallOneArg() function (#14558) | Jeroen Demeyer | 2019-07-04 | 1 | -12/+2 |
| | |||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -10/+10 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. ↵ | Zackery Spytz | 2018-12-17 | 1 | -0/+4 |
| | | | | (GH-11175) | ||||
* | bpo-33029: Fix signatures of getter and setter functions. (GH-10746) | Serhiy Storchaka | 2018-11-27 | 1 | -1/+1 |
| | | | Fix also return type for few other functions (clear, releasebuffer). | ||||
* | cjkcodecs: Fix compiler warning (GH-10651) | Victor Stinner | 2018-11-22 | 1 | -2/+2 |
| | | | | | | | | | Fixed the following compiler warning in multibytecodec.c: warning C4244: '=': conversion from 'Py_ssize_t' to 'unsigned char', possible loss of data Cast Py_ssize_t to unsigned char: the maximum value is checked on the previous line. | ||||
* | bpo-33578: Fix getstate/setstate for CJK decoder (GH-10290) | Christopher Thorne | 2018-11-02 | 1 | -5/+22 |
| | | | | Previous version was casting to Py_ssize_t incorrectly and exhibited unexpected behavior on big-endian systems. | ||||
* | bpo-33578: Add getstate/setstate for CJK codec (GH-6984) | Christopher Thorne | 2018-11-01 | 1 | -0/+154 |
| | | | | | | | | This implements getstate and setstate for the cjkcodecs multibyte incremental encoders/decoders, primarily to fix issues with seek/tell. The encoder getstate/setstate is slightly tricky as the "state" is pending bytes + MultibyteCodec_State but only an integer can be returned. The approach I've taken is to encode this data into a long, similar to how .tell() encodes a "cookie_type" as a long. https://bugs.python.org/issue33578 | ||||
* | bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) | Serhiy Storchaka | 2017-04-19 | 1 | -0/+3 |
| | | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate. | ||||
* | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -4/+4 |
| | |||||
* | Use _PyObject_CallMethodIdObjArgs() | Victor Stinner | 2016-12-09 | 1 | -2/+2 |
| | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() in various modules when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string. | ||||
* | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -2/+2 |
| | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | ||||
* | Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -2/+2 |
| | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
| | |||||
* | Issue #20440: Applied yet one patch for using Py_SETREF. | Serhiy Storchaka | 2015-12-27 | 1 | -2/+1 |
| | | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR. | ||||
* | Merge 3.4 | Victor Stinner | 2015-07-16 | 1 | -0/+3 |
|\ | |||||
| * | Closes #23247: Fix a crash in the StreamWriter.reset() of CJK codecs | Victor Stinner | 2015-07-16 | 1 | -0/+3 |
| | | |||||
* | | Specify default values of semantic booleans in Argument Clinic generated ↵ | Serhiy Storchaka | 2015-05-30 | 1 | -4/+4 |
| | | | | | | | | signatures as booleans. | ||||
* | | Issue #24001: Argument Clinic converters now use accept={type} | Larry Hastings | 2015-05-04 | 1 | -4/+4 |
| | | | | | | | | instead of types={'type'} to specify the types the converter accepts. | ||||
* | | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -18/+31 |
| | | |||||
* | | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -6/+1 |
| | | |||||
* | | Issue #23215: Multibyte codecs with custom error handlers that ignores errors | Serhiy Storchaka | 2015-02-20 | 1 | -8/+11 |
|\ \ | |/ | | | | | | | consumed too much memory and raised SystemError or MemoryError. Original patch by Aleksi Torhamo. | ||||
| * | Issue #23215: Multibyte codecs with custom error handlers that ignores errors | Serhiy Storchaka | 2015-02-20 | 1 | -8/+11 |
| | | | | | | | | | | consumed too much memory and raised SystemError or MemoryError. Original patch by Aleksi Torhamo. | ||||
* | | Removed redundant casts to `char *`. | Serhiy Storchaka | 2014-09-28 | 1 | -2/+2 |
| | | | | | | | | Corresponding functions now accept `const char *` (issue #1772673). | ||||
* | | Issue #20152: Convert _multibytecodecs to Argument Clinic. | Brett Cannon | 2014-08-22 | 1 | -142/+191 |
|/ | |||||
* | Issue #19515: Remove identifiers duplicated in the same file. | Victor Stinner | 2013-11-12 | 1 | -2/+2 |
| | | | | Patch written by Andrei Dorian Duma. | ||||
* | Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant to | Victor Stinner | 2013-07-16 | 1 | -0/+2 |
| | | | | notify exceptions raised by the _PyUnicodeWriter API | ||||
* | Issue #18408: Fix CJK decoders, raise MemoryError on memory allocation failure | Victor Stinner | 2013-07-15 | 1 | -1/+3 |
| | |||||
* | fix indentation | Victor Stinner | 2013-07-08 | 1 | -13/+13 |
| | |||||
* | Close #17694: Add minimum length to _PyUnicodeWriter | Victor Stinner | 2013-04-17 | 1 | -4/+5 |
| | | | | | | | | | | | | * Add also min_char attribute to _PyUnicodeWriter structure (currently unused) * _PyUnicodeWriter_Init() has no more argument (except the writer itself): min_length and overallocate must be set explicitly * In error handlers, only enable overallocation if the replacement string is longer than 1 character * CJK decoders don't use overallocation anymore * Set min_length, instead of preallocating memory using _PyUnicodeWriter_Prepare(), in many decoders * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow | ||||
* | Issue #17693: Fix memory/reference leaks | Victor Stinner | 2013-04-14 | 1 | -5/+3 |
| | |||||
* | Issue #17693: CJK encoders now use the new Unicode API (PEP 393) | Victor Stinner | 2013-04-14 | 1 | -76/+96 |
| | |||||
* | Close #17693: Rewrite CJK decoders to use the _PyUnicodeWriter API instead of | Victor Stinner | 2013-04-11 | 1 | -90/+39 |
| | | | | | | the legacy Py_UNICODE API. Add also a new _PyUnicodeWriter_WriteChar() function. | ||||
* | support encoding error handlers that return bytes (closes #16585) | Benjamin Peterson | 2012-12-02 | 1 | -2/+6 |
| | |||||
* | unicode -> str | Benjamin Peterson | 2012-12-02 | 1 | -3/+3 |
| | |||||
* | Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) | Victor Stinner | 2011-12-01 | 1 | -2/+2 |
| | | | | Create an empty string with the new Unicode API. | ||||
* | MultibyteCodec_Decode() catchs PyUnicode_AS_UNICODE() failures | Victor Stinner | 2011-12-01 | 1 | -0/+2 |
| | |||||
* | CJK codecs checks for conversion to Py_UNICODE* failures | Victor Stinner | 2011-11-21 | 1 | -3/+10 |
| | |||||
* | MultibyteCodec_Encode() checks if PyUnicode_AS_UNICODE() failed | Victor Stinner | 2011-11-21 | 1 | -2/+5 |
| | |||||
* | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -2/+2 |
| | |||||
* | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 1 | -2/+5 |
| | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | ||||
* | Close #12171: IncrementalEncoder.reset() of CJK codecs (multibytecodec) calls | Victor Stinner | 2011-05-30 | 1 | -4/+10 |
| | | | | encreset() instead of decreset(). | ||||
* | (Merge 3.2) Issue #12100: Don't reset incremental encoders of CJK codecs at | Victor Stinner | 2011-05-24 | 1 | -4/+4 |
|\ | | | | | | | | | each call to their encode() method anymore, but continue to call the reset() method if the final argument is True. | ||||
| * | Issue #12100: Don't reset incremental encoders of CJK codecs at each call to | Victor Stinner | 2011-05-24 | 1 | -4/+4 |
| | | | | | | | | | | their encode() method anymore, but continue to call the reset() method if the final argument is True. | ||||
| * | Recorded merge of revisions 81032 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -1435/+1435 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from 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 #8914: fix various warnings from the Clang static analyzer v254. | Brett Cannon | 2011-02-22 | 1 | -0/+1 |
| | | |||||
* | | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -1435/+1435 |
|/ | | | | | | | | | | 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. ........ | ||||
* | add a replacement API for PyCObject, PyCapsule #5630 | Benjamin Peterson | 2009-05-05 | 1 | -2/+2 |
| | | | | | | All stdlib modules with C-APIs now use this. Patch by Larry Hastings |