summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Issue #19646: repr(dict) now uses _PyUnicodeWriter API for better performancesVictor Stinner2013-11-191-55/+54
| | |
* | | Issue #19513: repr(tuple) now uses _PyUnicodeWriter for better performancesVictor Stinner2013-11-191-27/+37
| | |
* | | Add _PyUnicodeWriter_WriteASCIIString() functionVictor Stinner2013-11-192-26/+73
| | |
* | | Issue #19513: Disable overallocation of the PyUnicodeWriter before the last ↵Victor Stinner2013-11-191-0/+1
| | | | | | | | | | | | write
* | | Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.Serhiy Storchaka2013-11-192-40/+403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The utf-16* and utf-32* encoders no longer allow surrogate code points (U+D800-U+DFFF) to be encoded. The utf-32* decoders no longer decode byte sequences that correspond to surrogate code points. The surrogatepass error handler now works with the utf-16* and utf-32* codecs. Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
* | | Issue #19513: Simplify list_repr()Victor Stinner2013-11-181-8/+2
| | |
* | | Issue #19513: repr(list) now uses the PyUnicodeWriter API, it is faster thanVictor Stinner2013-11-181-16/+28
| | | | | | | | | | | | the PyAccu API
* | | Issue #19581: Change the overallocation factor of _PyUnicodeWriter on WindowsVictor Stinner2013-11-181-6/+17
| | | | | | | | | | | | On Windows, a factor of 50% gives best performances.
* | | Argument Clinic: rename "self" to "module" for module-level functions.Larry Hastings2013-11-182-2/+2
| | |
* | | #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs().Ezio Melotti2013-11-164-10/+16
| | |
* | | Don't decref exc too soonNick Coghlan2013-11-151-1/+2
| | |
* | | Issue #19429, #19437: fix error handling in the OSError constructorVictor Stinner2013-11-141-3/+5
| | |
* | | fix refleaksBenjamin Peterson2013-11-141-3/+7
| | |
* | | adjust styleBenjamin Peterson2013-11-141-12/+8
| | |
* | | Issue #17828: _PyObject_GetDictPtr() may return NULL instead of a PyObject**Christian Heimes2013-11-141-3/+5
| | | | | | | | | | | | CID 1128792: Dereference null return value (NULL_RETURNS)
* | | Issue #17828: va_start() must be accompanied by va_end()Christian Heimes2013-11-141-6/+7
| | | | | | | | | | | | CID 1128793: Missing varargs init or cleanup (VARARGS)
* | | Close #17828: better handling of codec errorsNick Coghlan2013-11-132-9/+131
| | | | | | | | | | | | | | | | | | | | | | | | - output type errors now redirect users to the type-neutral convenience functions in the codecs module - stateless errors that occur during encoding and decoding will now be automatically wrapped in exceptions that give the name of the codec involved
* | | Don't use deprecated function PyUnicode_GET_SIZE()Victor Stinner2013-11-131-1/+1
| | | | | | | | | | | | Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize()
* | | Issue #19515: Remove identifiers duplicated in the same file.Victor Stinner2013-11-121-1/+0
| | | | | | | | | | | | Patch written by Andrei Dorian Duma.
* | | _Py_normalize_encoding(): explain how the value 6 was computedVictor Stinner2013-11-071-0/+1
| | |
* | | Issue #19512, #19515: remove shared identifiers, move identifiers where theyVictor Stinner2013-11-072-9/+11
| | | | | | | | | | | | | | | | | | | | | are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
* | | frameobject.c: Use an identifer instead of creating explicitly an internedVictor Stinner2013-11-071-7/+5
| | | | | | | | | | | | string for "__builtins__" literal string
* | | Fix _Py_normalize_encoding(): ensure that buffer is big enough to store "utf-8"Victor Stinner2013-11-071-0/+2
| | | | | | | | | | | | if the input string is NULL
* | | Issue #19514: Deduplicate some _Py_IDENTIFIER declarations.Martin v. Löwis2013-11-071-8/+6
| | | | | | | | | | | | Patch by Andrei Dorian Duma.
* | | #17080: improve error message of float/complex when the wrong type is passed.Ezio Melotti2013-11-072-6/+9
| | |
* | | Issue #19512: Use the new _PyId_builtins identifierVictor Stinner2013-11-061-2/+6
| | |
* | | Issue #19512: add _PyUnicode_CompareWithId() functionVictor Stinner2013-11-062-11/+21
| | | | | | | | | | | | | | | | | | | | | _PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString() when both strings are equal and interned. Add also _PyId_builtins identifier for "builtins" common string.
* | | Issue #19512: type_abstractmethods() and type_set_abstractmethods() now use anVictor Stinner2013-11-061-5/+10
| | | | | | | | | | | | identifier for the "__abstractmethods__" string
* | | Issue #19512: Add a new _PyDict_DelItemId() function, similar toVictor Stinner2013-11-061-0/+9
| | | | | | | | | | | | PyDict_DelItemString() but using an identifier for the key
* | | Issue #19512: Py_ReprEnter() and Py_ReprLeave() now use an identifier for theVictor Stinner2013-11-061-4/+4
| | | | | | | | | | | | "Py_Repr" dictionary key
* | | Issue #19424: PyUnicode_CompareWithASCIIString() normalizes memcmp() resultVictor Stinner2013-11-041-2/+6
| | | | | | | | | | | | to -1, 0, 1
* | | Issue #16286: remove duplicated identity check from unicode_compare()Victor Stinner2013-11-041-4/+5
| | | | | | | | | | | | Move the test to PyUnicode_Compare()
* | | Issue #16286: optimize PyUnicode_RichCompare() for identical strings (sameVictor Stinner2013-11-042-12/+35
| | | | | | | | | | | | | | | | | | pointer) for any operator, not only Py_EQ and Py_NE. Code of bytes_richcompare() and PyUnicode_RichCompare() is now closer.
* | | Issue #16286: write a new subfunction bytes_compare_eq()Victor Stinner2013-11-042-42/+50
| | | | | | | | | | | | | | | * cleanup bytes_richcompare() * PyUnicode_RichCompare(): replace a test with a XOR
* | | Issue #19424: Fix a compiler warning on comparing signed/unsigned size_tVictor Stinner2013-11-031-1/+1
| | | | | | | | | | | | Patch written by Zachary Ware.
* | | Issue #19424: Fix a compiler warningVictor Stinner2013-10-301-1/+1
| | | | | | | | | | | | memcmp() just takes raw pointers
* | | Issue #19424: Optimize PyUnicode_CompareWithASCIIString()Victor Stinner2013-10-291-13/+30
| | | | | | | | | | | | | | | Use fast memcmp() instead of a loop using the slow PyUnicode_READ() macro. strlen() is still necessary to check Unicode string containing null bytes.
* | | Issue #17936: Fix O(n**2) behaviour when adding or removing many subclasses ↵Antoine Pitrou2013-10-291-59/+63
| | | | | | | | | | | | of a given type.
* | | Issue #19437: Fix _PyUnicode_New() (constructor of legacy string), set allVictor Stinner2013-10-291-11/+14
| | | | | | | | | | | | | | | attributes before checking for error. The destructor expects all attributes to be set. It is now safe to call Py_DECREF(unicode) in the constructor.
* | | Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() andVictor Stinner2013-10-291-0/+2
| | | | | | | | | | | | PyTuple_New() failure
* | | Issue #18609: Add a fast-path for "iso8859-1" encodingVictor Stinner2013-10-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | On AIX, the locale encoding may be "iso8859-1", which was not a known syntax of the legacy ISO 8859-1 encoding. Using a C codec instead of a Python codec is faster but also avoids tricky issues during Python startup or complex code.
* | | fix indentVictor Stinner2013-10-291-4/+4
| | |
* | | Issue #18408: Fix bytearrayiter.partition()/rpartition(), handleVictor Stinner2013-10-291-0/+10
| | | | | | | | | | | | PyByteArray_FromStringAndSize() failure (ex: on memory allocation failure)
* | | Issue #18408: Fix error handling in PyBytes_FromObject()Victor Stinner2013-10-291-2/+1
| | | | | | | | | | | | _PyBytes_Resize(&new) sets new to NULL on error, don't call Py_DECREF() with NULL.
* | | Issue #18408: Fix PyUnicode_AsUTF8AndSize(), raise MemoryError exception onVictor Stinner2013-10-291-0/+1
| | | | | | | | | | | | memory allocation failure
* | | Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handleVictor Stinner2013-10-292-31/+53
| | | | | | | | | | | | | | | exceptions when merging fast locals into f_locals of a frame. PyEval_GetLocals() now raises an exception and return NULL on failure.
* | | Issue #19369: Optimized the usage of __length_hint__().Serhiy Storchaka2013-10-241-8/+10
| | |
* | | Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-196-20/+20
| | |
* | | Issue #19279: UTF-7 decoder no more produces illegal strings.Serhiy Storchaka2013-10-191-0/+2
|\ \ \ | |/ /
| * | Issue #19279: UTF-7 decoder no more produces illegal strings.Serhiy Storchaka2013-10-191-0/+2
| | |