Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make Ellipsis and NotImplemented picklable through the reduce protocol. | Alexandre Vassalotti | 2013-11-24 | 2 | -2/+24 |
| | |||||
* | Make built-in methods picklable through the reduce protocol. | Alexandre Vassalotti | 2013-11-24 | 1 | -1/+21 |
| | |||||
* | Issue #3158: doctest can now find doctests in functions and methods | Zachary Ware | 2013-11-24 | 1 | -1/+1 |
| | | | | | | | | written in C. As a part of this, a few doctests have been added to the builtins module (on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all platforms) on float, and test_builtins now runs doctests in builtins. | ||||
* | Issue #19674: inspect.signature() now produces a correct signature | Larry Hastings | 2013-11-23 | 3 | -14/+81 |
| | | | | for some builtins. | ||||
* | Issue #19730: Argument Clinic now supports all the existing PyArg | Larry Hastings | 2013-11-23 | 1 | -5/+5 |
| | | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive. | ||||
* | Issue #17810: Fixed NULL check in _PyObject_GetItemsIter() | Christian Heimes | 2013-11-23 | 1 | -1/+1 |
| | | | | CID 1131948: Logically dead code (DEADCODE) | ||||
* | Issue #17810: Implement PEP 3154, pickle protocol 4. | Antoine Pitrou | 2013-11-23 | 3 | -99/+438 |
| | | | | Most of the work is by Alexandre. | ||||
* | Implement PEP 451 (ModuleSpec). | Eric Snow | 2013-11-22 | 1 | -48/+5 |
| | |||||
* | Issue #19619: Blacklist non-text codecs in method API | Nick Coghlan | 2013-11-22 | 1 | -2/+2 |
| | | | | | | | | | | str.encode, bytes.decode and bytearray.decode now use an internal API to throw LookupError for known non-text encodings, rather than attempting the encoding or decoding operation and then throwing a TypeError for an unexpected output type. The latter mechanism remains in place for third party non-text encodings. | ||||
* | Close #19568: Fix bytearray_setslice_linear(), fix handling of | Victor Stinner | 2013-11-21 | 1 | -37/+63 |
| | | | | | | | | | | PyByteArray_Resize() failure: leave the bytearray object in an consistent state. If growth < 0, handling the memory allocation failure is tricky here because the bytearray object has already been modified. If lo != 0, the operation is completed, but a MemoryError is still raised and the memory block is not shrinked. If lo == 0, the bytearray is restored in its previous state and a MemoryError is raised. | ||||
* | Close #19578: Fix list_ass_subscript(), handle list_resize() failure | Victor Stinner | 2013-11-21 | 1 | -2/+3 |
| | | | | Notify the caller of the failure (MemoryError exception). | ||||
* | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'. | Christian Heimes | 2013-11-20 | 4 | -181/+4 |
| | | | | Python now uses SipHash24 on all major platforms. | ||||
* | Remove dead code committed in issue #12892. | Serhiy Storchaka | 2013-11-19 | 1 | -104/+0 |
| | |||||
* | Also chain codec exceptions that allow weakrefs | Nick Coghlan | 2013-11-19 | 1 | -3/+14 |
| | | | | | | | The zlib and hex codecs throw custom exception types with weakref support if the input type is valid, but the data fails validation. Make sure the exception chaining in the codec infrastructure can wrap those as well. | ||||
* | Issue #19646: repr(dict) now uses _PyUnicodeWriter API for better performances | Victor Stinner | 2013-11-19 | 1 | -55/+54 |
| | |||||
* | Issue #19513: repr(tuple) now uses _PyUnicodeWriter for better performances | Victor Stinner | 2013-11-19 | 1 | -27/+37 |
| | |||||
* | Add _PyUnicodeWriter_WriteASCIIString() function | Victor Stinner | 2013-11-19 | 2 | -26/+73 |
| | |||||
* | Issue #19513: Disable overallocation of the PyUnicodeWriter before the last ↵ | Victor Stinner | 2013-11-19 | 1 | -0/+1 |
| | | | | write | ||||
* | Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates. | Serhiy Storchaka | 2013-11-19 | 2 | -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 Stinner | 2013-11-18 | 1 | -8/+2 |
| | |||||
* | Issue #19513: repr(list) now uses the PyUnicodeWriter API, it is faster than | Victor Stinner | 2013-11-18 | 1 | -16/+28 |
| | | | | the PyAccu API | ||||
* | Issue #19581: Change the overallocation factor of _PyUnicodeWriter on Windows | Victor Stinner | 2013-11-18 | 1 | -6/+17 |
| | | | | On Windows, a factor of 50% gives best performances. | ||||
* | Argument Clinic: rename "self" to "module" for module-level functions. | Larry Hastings | 2013-11-18 | 2 | -2/+2 |
| | |||||
* | #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs(). | Ezio Melotti | 2013-11-16 | 4 | -10/+16 |
| | |||||
* | Don't decref exc too soon | Nick Coghlan | 2013-11-15 | 1 | -1/+2 |
| | |||||
* | Issue #19429, #19437: fix error handling in the OSError constructor | Victor Stinner | 2013-11-14 | 1 | -3/+5 |
| | |||||
* | fix refleaks | Benjamin Peterson | 2013-11-14 | 1 | -3/+7 |
| | |||||
* | adjust style | Benjamin Peterson | 2013-11-14 | 1 | -12/+8 |
| | |||||
* | Issue #17828: _PyObject_GetDictPtr() may return NULL instead of a PyObject** | Christian Heimes | 2013-11-14 | 1 | -3/+5 |
| | | | | CID 1128792: Dereference null return value (NULL_RETURNS) | ||||
* | Issue #17828: va_start() must be accompanied by va_end() | Christian Heimes | 2013-11-14 | 1 | -6/+7 |
| | | | | CID 1128793: Missing varargs init or cleanup (VARARGS) | ||||
* | Close #17828: better handling of codec errors | Nick Coghlan | 2013-11-13 | 2 | -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 Stinner | 2013-11-13 | 1 | -1/+1 |
| | | | | Replace it with PyUnicode_GET_LENGTH() or PyUnicode_AsUnicodeAndSize() | ||||
* | Issue #19515: Remove identifiers duplicated in the same file. | Victor Stinner | 2013-11-12 | 1 | -1/+0 |
| | | | | Patch written by Andrei Dorian Duma. | ||||
* | _Py_normalize_encoding(): explain how the value 6 was computed | Victor Stinner | 2013-11-07 | 1 | -0/+1 |
| | |||||
* | Issue #19512, #19515: remove shared identifiers, move identifiers where they | Victor Stinner | 2013-11-07 | 2 | -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 interned | Victor Stinner | 2013-11-07 | 1 | -7/+5 |
| | | | | string for "__builtins__" literal string | ||||
* | Fix _Py_normalize_encoding(): ensure that buffer is big enough to store "utf-8" | Victor Stinner | 2013-11-07 | 1 | -0/+2 |
| | | | | if the input string is NULL | ||||
* | Issue #19514: Deduplicate some _Py_IDENTIFIER declarations. | Martin v. Löwis | 2013-11-07 | 1 | -8/+6 |
| | | | | Patch by Andrei Dorian Duma. | ||||
* | #17080: improve error message of float/complex when the wrong type is passed. | Ezio Melotti | 2013-11-07 | 2 | -6/+9 |
| | |||||
* | Issue #19512: Use the new _PyId_builtins identifier | Victor Stinner | 2013-11-06 | 1 | -2/+6 |
| | |||||
* | Issue #19512: add _PyUnicode_CompareWithId() function | Victor Stinner | 2013-11-06 | 2 | -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 an | Victor Stinner | 2013-11-06 | 1 | -5/+10 |
| | | | | identifier for the "__abstractmethods__" string | ||||
* | Issue #19512: Add a new _PyDict_DelItemId() function, similar to | Victor Stinner | 2013-11-06 | 1 | -0/+9 |
| | | | | PyDict_DelItemString() but using an identifier for the key | ||||
* | Issue #19512: Py_ReprEnter() and Py_ReprLeave() now use an identifier for the | Victor Stinner | 2013-11-06 | 1 | -4/+4 |
| | | | | "Py_Repr" dictionary key | ||||
* | Issue #19424: PyUnicode_CompareWithASCIIString() normalizes memcmp() result | Victor Stinner | 2013-11-04 | 1 | -2/+6 |
| | | | | to -1, 0, 1 | ||||
* | Issue #16286: remove duplicated identity check from unicode_compare() | Victor Stinner | 2013-11-04 | 1 | -4/+5 |
| | | | | Move the test to PyUnicode_Compare() | ||||
* | Issue #16286: optimize PyUnicode_RichCompare() for identical strings (same | Victor Stinner | 2013-11-04 | 2 | -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 Stinner | 2013-11-04 | 2 | -42/+50 |
| | | | | | * cleanup bytes_richcompare() * PyUnicode_RichCompare(): replace a test with a XOR | ||||
* | Issue #19424: Fix a compiler warning on comparing signed/unsigned size_t | Victor Stinner | 2013-11-03 | 1 | -1/+1 |
| | | | | Patch written by Zachary Ware. | ||||
* | Issue #19424: Fix a compiler warning | Victor Stinner | 2013-10-30 | 1 | -1/+1 |
| | | | | memcmp() just takes raw pointers |