Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Optimize unicode_subtype_new(): don't encode to wchar_t and decode from wchar_t | Victor Stinner | 2011-10-01 | 2 | -46/+84 |
| | | | | Rewrite unicode_subtype_new(): allocate directly the right type. | ||||
* | Add _PyUnicode_UTF8() and _PyUnicode_UTF8_LENGTH() macros | Victor Stinner | 2011-10-01 | 1 | -41/+54 |
| | | | | | | * Rename existing _PyUnicode_UTF8() macro to PyUnicode_UTF8() * Rename existing _PyUnicode_UTF8_LENGTH() macro to PyUnicode_UTF8_LENGTH() * PyUnicode_UTF8() and PyUnicode_UTF8_LENGTH() are more strict | ||||
* | Backout of changeset 228fd2bd83a5 by Nadeem Vawda in branch 'default': | Antoine Pitrou | 2011-10-01 | 1 | -1/+1 |
| | | | | Issue #12804: Prevent "make test" from using network resources. | ||||
* | Issue 13085: Fix some memory leaks. Patch by Stefan Krah. | Martin v. Löwis | 2011-10-01 | 2 | -11/+20 |
| | |||||
* | merge heads | Benjamin Peterson | 2011-10-01 | 2 | -3/+8 |
|\ | |||||
| * | PyUnicode_Substring() now accepts end bigger than string length | Victor Stinner | 2011-10-01 | 1 | -3/+6 |
| | | | | | | | | Fix also a bug: call PyUnicode_READY() before reading string length. | ||||
| * | _PyUnicode_AsKind() is *not* part of the stable ABI | Victor Stinner | 2011-10-01 | 1 | -0/+2 |
| | | |||||
* | | remove reference to non-existent file | Benjamin Peterson | 2011-10-01 | 1 | -2/+1 |
|/ | |||||
* | remove "fast-path" for (i)adding strings | Benjamin Peterson | 2011-10-01 | 2 | -8/+14 |
| | | | | | | These were just an artifact of the old unicode concatenation hack and likely just penalized other kinds of adding. Also, this fixes __(i)add__ on string subclasses. | ||||
* | Ooops, avoid a division by zero in unicode_repeat() | Victor Stinner | 2011-10-01 | 1 | -1/+1 |
| | |||||
* | PyUnicode_FromObject() ensures that its output is a ready string | Victor Stinner | 2011-10-01 | 1 | -0/+2 |
| | |||||
* | I want a super fast 'a' * n! | Victor Stinner | 2011-10-01 | 1 | -15/+10 |
| | | | | | | | * Optimize unicode_repeat() for a special case with memset() * Simplify integer overflow checking; remove the second check because PyUnicode_New() already does it and uses a smaller limit (Py_ssize_t vs size_t) | ||||
* | PyUnicode_CHARACTER_SIZE(): add a reference to PyUnicode_KIND_SIZE() | Victor Stinner | 2011-10-01 | 1 | -2/+5 |
| | |||||
* | Fix usage of PyUnicode_READY in unicodeobject.c | Victor Stinner | 2011-10-01 | 1 | -19/+12 |
| | |||||
* | Remove private substring() function, reuse public PyUnicode_Substring() | Victor Stinner | 2011-09-30 | 1 | -62/+22 |
| | | | | | * PyUnicode_Substring() now fails if start or end is invalid * PyUnicode_Substring() reuses PyUnicode_Copy() for non-exact strings | ||||
* | Optimize PyUnicode_Copy(): don't recompute maximum character | Victor Stinner | 2011-09-30 | 1 | -3/+28 |
| | |||||
* | Remove commented code: str+=str is no more super-optimized | Victor Stinner | 2011-09-30 | 1 | -112/+6 |
| | |||||
* | PyUnicode_FromObject() reuses PyUnicode_Copy() | Victor Stinner | 2011-09-30 | 1 | -4/+2 |
| | | | | | * PyUnicode_Copy() is faster than substring() * Fix also a compiler warning | ||||
* | pyexat uses the new Unicode API | Victor Stinner | 2011-09-30 | 1 | -5/+7 |
| | |||||
* | Fix ResourceWarnings in makeunicodedata.py. | Ezio Melotti | 2011-09-30 | 1 | -81/+88 |
| | |||||
* | Add PyUnicode_Copy() function, include it to the public API | Victor Stinner | 2011-09-30 | 3 | -21/+27 |
| | |||||
* | PyUnicode_CopyCharacters() uses exceptions instead of assertions | Victor Stinner | 2011-09-30 | 1 | -2/+4 |
| | | | | Call PyErr_BadInternalCall() if inputs are not unicode strings. | ||||
* | Fix a compiler warning | Victor Stinner | 2011-09-29 | 1 | -1/+1 |
| | |||||
* | Fix array.array('u') constructor | Victor Stinner | 2011-09-29 | 1 | -6/+12 |
| | |||||
* | posix module catches PyUnicode_AsUnicode() failure | Victor Stinner | 2011-09-29 | 1 | -96/+167 |
| | | | | | | * Replace PyUnicode_AS_UNICODE by PyUnicode_AsUnicode, PyUnicode_AS_UNICODE is no more a real macro * Replace Py_UNICODE by wchar_t in code specific to Windows | ||||
* | array module uses the new Unicode API | Victor Stinner | 2011-09-29 | 2 | -35/+36 |
| | | | | | * Use Py_UCS4* buffer instead of Py_UNICODE* * Use "I" or "L" format, instead of "u" format | ||||
* | array module stores the typecode in a char, instead of Py_UNICODE | Victor Stinner | 2011-09-29 | 1 | -19/+16 |
| | |||||
* | raw_unicode_escape() uses the new Unicode API | Victor Stinner | 2011-09-29 | 1 | -46/+21 |
| | |||||
* | Strip trailing spaces of _pickle.c | Victor Stinner | 2011-09-29 | 1 | -17/+17 |
| | |||||
* | PyLocale_strxfrm() uses the new Unicode API | Victor Stinner | 2011-09-29 | 1 | -24/+15 |
| | |||||
* | fileio_init() checks for failure on conversion to Py_UNICODE* | Victor Stinner | 2011-09-29 | 1 | -4/+6 |
| | |||||
* | Fix test_codeccallbacks for Windows: check size of wchar_t, not sys.maxunicode | Victor Stinner | 2011-09-29 | 1 | -4/+6 |
| | |||||
* | Fix test_codecs for Windows: check size of wchar_t, not sys.maxunicode | Victor Stinner | 2011-09-29 | 1 | -41/+44 |
| | |||||
* | Merge. | Charles-François Natali | 2011-09-29 | 2 | -40/+32 |
|\ | |||||
| * | _PyUnicode_Ready() cannot be used on ready strings anymore | Victor Stinner | 2011-09-29 | 2 | -30/+24 |
| | | | | | | | | | | | | * Change its prototype: PyObject* instead of PyUnicodeoObject*. * Remove an old assertion, the result of PyUnicode_READY (_PyUnicode_Ready) must be checked instead | ||||
| * | Move _PyUnicode_UTF8() and _PyUnicode_UTF8_LENGTH() outside unicodeobject.h | Victor Stinner | 2011-09-29 | 2 | -10/+8 |
| | | | | | | | | Move these macros to unicodeobject.c | ||||
* | | Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas | Charles-François Natali | 2011-09-29 | 3 | -0/+5 |
|\ \ | |/ |/| | | | Jarosch. | ||||
| * | Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas | Charles-François Natali | 2011-09-29 | 3 | -0/+5 |
| | | | | | | | | Jarosch. | ||||
* | | Add a note in PyUnicode_CopyCharacters() doc: it doesn't write null character | Victor Stinner | 2011-09-29 | 2 | -44/+47 |
| | | | | | | | | Cleanup also the code (avoid the goto). | ||||
* | | Re-enable test. | Martin v. Löwis | 2011-09-29 | 1 | -4/+1 |
| | | |||||
* | | Port normalization to new API. | Martin v. Löwis | 2011-09-29 | 1 | -71/+119 |
| | | |||||
* | | Rename Py_BUILD_ASSERT to Py_BUILD_ASSERT_EXPR | Victor Stinner | 2011-09-29 | 1 | -6/+5 |
| | | | | | | | | | | To make it clearer that Py_BUILD_ASSERT_EXPR(cond) cannot be used as assert(cond). | ||||
* | | pymacro.h: Inline _Py_ARRAY_LENGTH_CHECK() and add http://ccodearchive.net/ | Victor Stinner | 2011-09-29 | 1 | -13/+12 |
| | | |||||
* | | Merge heads. | Ezio Melotti | 2011-09-29 | 1 | -21/+42 |
|\ \ | |||||
| * | | Update and reorganize the whatsnew entry for PEP 393. | Ezio Melotti | 2011-09-29 | 1 | -21/+42 |
| | | | |||||
* | | | Fix hex_digit_to_int() prototype: expect Py_UCS4, not Py_UNICODE | Victor Stinner | 2011-09-29 | 2 | -4/+4 |
| | | | |||||
* | | | modsupport.c reuses Py_UNICODE_strlen() | Victor Stinner | 2011-09-29 | 1 | -10/+1 |
| | | | |||||
* | | | _io.textio: fix character type, use Py_UCS4 instead of Py_UNICODE | Victor Stinner | 2011-09-29 | 1 | -3/+3 |
| | | | |||||
* | | | _sre: don't use Py_UNICODE anymore | Victor Stinner | 2011-09-29 | 1 | -9/+7 |
|/ / | | | | | | | | | | | * Downcasting from Py_UCS4 to Py_UNICODE is wrong is Py_UNICODE is 16-bit wchar_t * Remove old special case in getstring(), unicode is now handled separetely | ||||
* | | Remove now useless redefinition of chr/ord for narrow builds in ↵ | Ezio Melotti | 2011-09-29 | 1 | -15/+0 |
| | | | | | | | | test_multibytecodec_support.py. |