Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Cleanup unicodeobject.c | Victor Stinner | 2012-12-04 | 1 | -9/+12 |
| | | | | | | | | * Remove micro-optization: (errors == "surrogateescape" || strcmp(errors, "surrogateescape") == 0). Only use strcmp() * Initialize 'arg' members in unicode_format_arg() to help the compiler to diagnose real bugs and also make the code simpler to read | ||||
* | Issue #16455: On FreeBSD and Solaris, if the locale is C, the | Victor Stinner | 2012-12-04 | 1 | -11/+13 |
| | | | | | | | ASCII/surrogateescape codec is now used, instead of the locale encoding, to decode the command line arguments. This change fixes inconsistencies with os.fsencode() and os.fsdecode() because these operating systems announces an ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice. | ||||
* | Issue #16562: Optimize dict equality testing. | Antoine Pitrou | 2012-12-02 | 1 | -1/+6 |
| | | | | Patch by Serhiy Storchaka (reviewed by Martin and Raymond). | ||||
* | Issue #16592: stringlib_bytes_join doesn't raise MemoryError on allocation ↵ | Christian Heimes | 2012-12-02 | 1 | -0/+1 |
| | | | | failure | ||||
* | Issue #16215: Fix potential double memory free in str.replace(). | Antoine Pitrou | 2012-11-17 | 1 | -0/+2 |
|\ | | | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #16215: Fix potential double memory free in str.replace(). | Antoine Pitrou | 2012-11-17 | 1 | -0/+2 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #16453: Fix equality testing of dead weakref objects. | Antoine Pitrou | 2012-11-11 | 1 | -3/+7 |
| |\ | | | | | | | | | | Also add tests for ordering and hashing. | ||||
* | | | Issue #16451: Refactor to remove duplication between range and slice in ↵ | Mark Dickinson | 2012-11-17 | 2 | -269/+84 |
| | | | | | | | | | | | | slice index computations. | ||||
* | | | Issue #16290: __complex__ must now always return an instance of complex. | Mark Dickinson | 2012-11-14 | 1 | -6/+6 |
| | | | |||||
* | | | Issue #16416: Fix error handling in _Py_wchar2char() _Py_char2wchar() functions | Victor Stinner | 2012-11-12 | 1 | -4/+5 |
| | | | |||||
* | | | Issue #16453: Fix equality testing of dead weakref objects. | Antoine Pitrou | 2012-11-11 | 1 | -3/+7 |
|\ \ \ | | |/ | |/| | | | | Also add tests for ordering and hashing. | ||||
| * | | Issue #16453: Fix equality testing of dead weakref objects. | Antoine Pitrou | 2012-11-11 | 1 | -3/+7 |
| | | | | | | | | | | | | Also add tests for ordering and hashing. | ||||
* | | | Issue #14794: slice.indices no longer returns OverflowError for out-of-range ↵ | Mark Dickinson | 2012-11-10 | 1 | -8/+175 |
| | | | | | | | | | | | | start, stop, step or length. | ||||
* | | | Close #16311: Use the _PyUnicodeWriter API in text decoders | Victor Stinner | 2012-11-06 | 1 | -324/+328 |
| | | | | | | | | | | | | | | | | | | | | | | | | * Remove unicode_widen(): replaced with _PyUnicodeWriter_Prepare() * Remove unicode_putchar(): replaced with PyUnicodeWriter_Prepare() + PyUnicode_WRITER() * When handling an decoding error, only overallocate the buffer by +25% instead of +100% | ||||
* | | | (Merge 3.3) Issue #8271: Fix compilation on Windows | Victor Stinner | 2012-11-04 | 1 | -1/+1 |
|\ \ \ | | |/ | |/| | |||||
| * | | Issue #8271: Fix compilation on Windows | Victor Stinner | 2012-11-04 | 1 | -1/+1 |
| | | | |||||
* | | | #8271: merge with 3.3. | Ezio Melotti | 2012-11-04 | 2 | -36/+66 |
|\ \ \ | |/ / | |||||
| * | | #8271: the utf-8 decoder now outputs the correct number of U+FFFD ↵ | Ezio Melotti | 2012-11-04 | 2 | -36/+66 |
| | | | | | | | | | | | | characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti. | ||||
* | | | Issue #16402: Merge fix from 3.3 | Mark Dickinson | 2012-11-04 | 1 | -5/+5 |
|\ \ \ | |/ / | |||||
| * | | Issue #16402: Merge fix from 3.2 | Mark Dickinson | 2012-11-04 | 1 | -5/+5 |
| |\ \ | | |/ | |||||
| | * | Issue #16402: In range slicing, fix shadowing of exceptions from __index__ ↵ | Mark Dickinson | 2012-11-04 | 1 | -5/+5 |
| | | | | | | | | | | | | method. | ||||
* | | | Fix compilation on Windows | Christian Heimes | 2012-11-03 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | Fix compilation on Windows | Christian Heimes | 2012-11-03 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | Fix compilation on Windows | Christian Heimes | 2012-11-03 | 1 | -1/+1 |
| | | | |||||
| * | | #8401: merge with 3.2. | Ezio Melotti | 2012-11-03 | 1 | -0/+6 |
| |\ \ | | |/ | |||||
* | | | #8401: merge with 3.3. | Ezio Melotti | 2012-11-03 | 1 | -0/+6 |
|\ \ \ | | |/ | |/| | |||||
| * | | #8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an ↵ | Ezio Melotti | 2012-11-03 | 1 | -0/+6 |
| | | | | | | | | | | | | error. | ||||
* | | | Merge 3.3. | Stefan Krah | 2012-11-02 | 1 | -0/+8 |
|\ \ \ | | |/ | |/| | |||||
| * | | Issue #15814: Use hash function that is compatible with the equality | Stefan Krah | 2012-11-02 | 1 | -0/+8 |
| | | | | | | | | | | | | definition from #15573. | ||||
* | | | merge 3.3 | Benjamin Peterson | 2012-10-31 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | merge 3.2 | Benjamin Peterson | 2012-10-31 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | avoid a function call with redundant checks for dict size | Benjamin Peterson | 2012-10-31 | 1 | -1/+1 |
| | | | |||||
* | | | merge 3.3 (#16345) | Benjamin Peterson | 2012-10-31 | 1 | -29/+30 |
|\ \ \ | |/ / | |||||
| * | | merge 3.2 (#16345) | Benjamin Peterson | 2012-10-31 | 1 | -29/+30 |
| |\ \ | | |/ | |||||
| | * | only fast-path fromkeys() when the constructor returns a empty dict (closes ↵ | Benjamin Peterson | 2012-10-31 | 1 | -33/+34 |
| | | | | | | | | | | | | #16345) | ||||
* | | | merge 3.3 | Benjamin Peterson | 2012-10-31 | 1 | -5/+6 |
|\ \ \ | |/ / | |||||
| * | | do safety checks on __qualname__ assignment | Benjamin Peterson | 2012-10-31 | 1 | -0/+2 |
| | | | |||||
| * | | don't shadow the __qualname__ descriptor with __qualname__ in the class's ↵ | Benjamin Peterson | 2012-10-31 | 1 | -5/+4 |
| | | | | | | | | | | | | __dict__ (closes #16271) | ||||
* | | | initialize map/filter/zip in _PyBuiltin_Init rather than the catch-all function | Benjamin Peterson | 2012-10-31 | 1 | -9/+0 |
| | | | |||||
* | | | merge 3.3 (#16369) | Benjamin Peterson | 2012-10-31 | 2 | -0/+30 |
|\ \ \ | |/ / | |||||
| * | | merge 3.2 (#16369) | Benjamin Peterson | 2012-10-31 | 2 | -0/+30 |
| |\ \ | | |/ | |||||
| | * | initialize more global type objects (closes #16369) | Benjamin Peterson | 2012-10-31 | 2 | -0/+30 |
| | | | |||||
| | * | Issue #14700: Fix buggy overflow checks for large precision and width in ↵ | Mark Dickinson | 2012-10-28 | 3 | -20/+15 |
| | | | | | | | | | | | | new-style and old-style formatting. | ||||
* | | | Issue #9566: Use the right type to fix a compiler warnings on Win64 | Victor Stinner | 2012-10-30 | 1 | -4/+4 |
| | | | |||||
* | | | Issue #16086: PyTypeObject.tp_flags and PyType_Spec.flags are now unsigned | Victor Stinner | 2012-10-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | ... (unsigned long and unsigned int) to avoid an undefined behaviour with Py_TPFLAGS_TYPE_SUBCLASS ((1 << 31). PyType_GetFlags() result type is now unsigned too (unsigned long, instead of long). | ||||
* | | | Close #14625: Rewrite the UTF-32 decoder. It is now 3x to 4x faster | Victor Stinner | 2012-10-30 | 1 | -73/+69 |
| | | | | | | | | | | | | Patch written by Serhiy Storchaka. | ||||
* | | | Issue #16330: Use surrogate-related macros | Victor Stinner | 2012-10-30 | 1 | -4/+3 |
| | | | | | | | | | | | | Patch written by Serhiy Storchaka. | ||||
* | | | Replace usage of the deprecated Py_UNICODE_COPY() with Py_MEMCPY() in ↵ | Victor Stinner | 2012-10-23 | 1 | -2/+2 |
| | | | | | | | | | | | | resize_copy() | ||||
* | | | Optimize _PyUnicode_HasNULChars(): use findchar() instead of ↵ | Victor Stinner | 2012-10-23 | 1 | -7/+9 |
| | | | | | | | | | | | | PyUnicode_Contains() | ||||
* | | | Inline raise_translate_exception(): it is only used once | Victor Stinner | 2012-10-23 | 1 | -15/+4 |
| | | |