summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup unicodeobject.cVictor Stinner2012-12-041-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, theVictor Stinner2012-12-041-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 Pitrou2012-12-021-1/+6
| | | | Patch by Serhiy Storchaka (reviewed by Martin and Raymond).
* Issue #16592: stringlib_bytes_join doesn't raise MemoryError on allocation ↵Christian Heimes2012-12-021-0/+1
| | | | failure
* Issue #16215: Fix potential double memory free in str.replace().Antoine Pitrou2012-11-171-0/+2
|\ | | | | | | Patch by Serhiy Storchaka.
| * Issue #16215: Fix potential double memory free in str.replace().Antoine Pitrou2012-11-171-0/+2
| | | | | | | | Patch by Serhiy Storchaka.
| * Issue #16453: Fix equality testing of dead weakref objects.Antoine Pitrou2012-11-111-3/+7
| |\ | | | | | | | | | Also add tests for ordering and hashing.
* | | Issue #16451: Refactor to remove duplication between range and slice in ↵Mark Dickinson2012-11-172-269/+84
| | | | | | | | | | | | slice index computations.
* | | Issue #16290: __complex__ must now always return an instance of complex.Mark Dickinson2012-11-141-6/+6
| | |
* | | Issue #16416: Fix error handling in _Py_wchar2char() _Py_char2wchar() functionsVictor Stinner2012-11-121-4/+5
| | |
* | | Issue #16453: Fix equality testing of dead weakref objects.Antoine Pitrou2012-11-111-3/+7
|\ \ \ | | |/ | |/| | | | Also add tests for ordering and hashing.
| * | Issue #16453: Fix equality testing of dead weakref objects.Antoine Pitrou2012-11-111-3/+7
| | | | | | | | | | | | Also add tests for ordering and hashing.
* | | Issue #14794: slice.indices no longer returns OverflowError for out-of-range ↵Mark Dickinson2012-11-101-8/+175
| | | | | | | | | | | | start, stop, step or length.
* | | Close #16311: Use the _PyUnicodeWriter API in text decodersVictor Stinner2012-11-061-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 WindowsVictor Stinner2012-11-041-1/+1
|\ \ \ | | |/ | |/|
| * | Issue #8271: Fix compilation on WindowsVictor Stinner2012-11-041-1/+1
| | |
* | | #8271: merge with 3.3.Ezio Melotti2012-11-042-36/+66
|\ \ \ | |/ /
| * | #8271: the utf-8 decoder now outputs the correct number of U+FFFD ↵Ezio Melotti2012-11-042-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.3Mark Dickinson2012-11-041-5/+5
|\ \ \ | |/ /
| * | Issue #16402: Merge fix from 3.2Mark Dickinson2012-11-041-5/+5
| |\ \ | | |/
| | * Issue #16402: In range slicing, fix shadowing of exceptions from __index__ ↵Mark Dickinson2012-11-041-5/+5
| | | | | | | | | | | | method.
* | | Fix compilation on WindowsChristian Heimes2012-11-031-1/+1
|\ \ \ | |/ /
| * | Fix compilation on WindowsChristian Heimes2012-11-031-1/+1
| |\ \ | | |/
| | * Fix compilation on WindowsChristian Heimes2012-11-031-1/+1
| | |
| * | #8401: merge with 3.2.Ezio Melotti2012-11-031-0/+6
| |\ \ | | |/
* | | #8401: merge with 3.3.Ezio Melotti2012-11-031-0/+6
|\ \ \ | | |/ | |/|
| * | #8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an ↵Ezio Melotti2012-11-031-0/+6
| | | | | | | | | | | | error.
* | | Merge 3.3.Stefan Krah2012-11-021-0/+8
|\ \ \ | | |/ | |/|
| * | Issue #15814: Use hash function that is compatible with the equalityStefan Krah2012-11-021-0/+8
| | | | | | | | | | | | definition from #15573.
* | | merge 3.3Benjamin Peterson2012-10-311-1/+1
|\ \ \ | |/ /
| * | merge 3.2Benjamin Peterson2012-10-311-1/+1
| |\ \ | | |/
| | * avoid a function call with redundant checks for dict sizeBenjamin Peterson2012-10-311-1/+1
| | |
* | | merge 3.3 (#16345)Benjamin Peterson2012-10-311-29/+30
|\ \ \ | |/ /
| * | merge 3.2 (#16345)Benjamin Peterson2012-10-311-29/+30
| |\ \ | | |/
| | * only fast-path fromkeys() when the constructor returns a empty dict (closes ↵Benjamin Peterson2012-10-311-33/+34
| | | | | | | | | | | | #16345)
* | | merge 3.3Benjamin Peterson2012-10-311-5/+6
|\ \ \ | |/ /
| * | do safety checks on __qualname__ assignmentBenjamin Peterson2012-10-311-0/+2
| | |
| * | don't shadow the __qualname__ descriptor with __qualname__ in the class's ↵Benjamin Peterson2012-10-311-5/+4
| | | | | | | | | | | | __dict__ (closes #16271)
* | | initialize map/filter/zip in _PyBuiltin_Init rather than the catch-all functionBenjamin Peterson2012-10-311-9/+0
| | |
* | | merge 3.3 (#16369)Benjamin Peterson2012-10-312-0/+30
|\ \ \ | |/ /
| * | merge 3.2 (#16369)Benjamin Peterson2012-10-312-0/+30
| |\ \ | | |/
| | * initialize more global type objects (closes #16369)Benjamin Peterson2012-10-312-0/+30
| | |
| | * Issue #14700: Fix buggy overflow checks for large precision and width in ↵Mark Dickinson2012-10-283-20/+15
| | | | | | | | | | | | new-style and old-style formatting.
* | | Issue #9566: Use the right type to fix a compiler warnings on Win64Victor Stinner2012-10-301-4/+4
| | |
* | | Issue #16086: PyTypeObject.tp_flags and PyType_Spec.flags are now unsignedVictor Stinner2012-10-301-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 fasterVictor Stinner2012-10-301-73/+69
| | | | | | | | | | | | Patch written by Serhiy Storchaka.
* | | Issue #16330: Use surrogate-related macrosVictor Stinner2012-10-301-4/+3
| | | | | | | | | | | | Patch written by Serhiy Storchaka.
* | | Replace usage of the deprecated Py_UNICODE_COPY() with Py_MEMCPY() in ↵Victor Stinner2012-10-231-2/+2
| | | | | | | | | | | | resize_copy()
* | | Optimize _PyUnicode_HasNULChars(): use findchar() instead of ↵Victor Stinner2012-10-231-7/+9
| | | | | | | | | | | | PyUnicode_Contains()
* | | Inline raise_translate_exception(): it is only used onceVictor Stinner2012-10-231-15/+4
| | |