Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update C API docs for PEP 393. | Georg Brandl | 2011-10-07 | 1 | -1/+1 |
| | |||||
* | Issue #12911: Fix memory consumption when calculating the repr() of huge ↵ | Antoine Pitrou | 2011-10-06 | 2 | -1/+36 |
|\ | | | | | | | | | | | | | tuples or lists. This introduces a small private API for this common pattern. The issue has been discovered thanks to Martin's huge-mem buildbot. | ||||
| * | Issue #12911: Fix memory consumption when calculating the repr() of huge ↵ | Antoine Pitrou | 2011-10-06 | 2 | -2/+37 |
| | | | | | | | | | | | | | | tuples or lists. This introduces a small private API for this common pattern. The issue has been discovered thanks to Martin's huge-mem buildbot. | ||||
* | | Fix PyUnicode_CHARACTER_SIZE and PyUnicode_KIND_SIZE | Victor Stinner | 2011-10-06 | 1 | -2/+2 |
| | | |||||
* | | Fix compilation warnings under 64-bit Windows | Antoine Pitrou | 2011-10-06 | 1 | -2/+3 |
| | | |||||
* | | Branch merge | Éric Araujo | 2011-10-06 | 1 | -1/+1 |
|\ \ | |||||
| * | | Fix typo | Éric Araujo | 2011-10-04 | 1 | -1/+1 |
| | | | |||||
* | | | rephrase PyUnicode_1BYTE_KIND documentation | Victor Stinner | 2011-10-05 | 1 | -6/+7 |
| | | | |||||
* | | | Don't check for the maximum character when copying from unicodeobject.c | Victor Stinner | 2011-10-05 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | * Create copy_characters() function which doesn't check for the maximum character in release mode * _PyUnicode_CheckConsistency() is no more static to be able to use it in _PyUnicode_FormatAdvanced() (in formatter_unicode.c) * _PyUnicode_CheckConsistency() checks the string hash | ||||
* | | | Add asciilib: similar to ucs1, ucs2 and ucs4 library, but specialized to ASCII | Victor Stinner | 2011-10-05 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | ucs1, ucs2 and ucs4 libraries have to scan created substring to find the maximum character, whereas it is not need to ASCII strings. Because ASCII strings are common, it is useful to optimize ASCII. | ||||
* | | | Document requierements of Unicode kinds | Victor Stinner | 2011-10-04 | 1 | -4/+20 |
| | | | |||||
* | | | More fixes. | Georg Brandl | 2011-10-05 | 1 | -2/+2 |
| | | | |||||
* | | | Fix a few typos in the unicode header. | Georg Brandl | 2011-10-05 | 1 | -11/+11 |
| | | | |||||
* | | | Fix grammar. | Georg Brandl | 2011-10-05 | 1 | -1/+1 |
| | | | |||||
* | | | Speedup str[a:b] and PyUnicode_FromKindAndData | Victor Stinner | 2011-10-05 | 1 | -0/+2 |
|/ / | | | | | | | | | | | | | | | * str[a:b] doesn't scan the string for the maximum character if the string is ascii only * PyUnicode_FromKindAndData() stops if we are sure that we cannot use a shorter character type. For example, _PyUnicode_FromUCS1() stops if we have at least one character in range U+0080-U+00FF | ||||
* | | Try to fix linking failures under Windows | Antoine Pitrou | 2011-10-04 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Try to fix linking failures under Windows | Antoine Pitrou | 2011-10-04 | 1 | -3/+3 |
| | | |||||
* | | Complete documentation of compact ASCII strings | Victor Stinner | 2011-10-03 | 1 | -3/+6 |
| | | |||||
* | | Document utf8_length and wstr_length states | Victor Stinner | 2011-10-03 | 1 | -7/+12 |
| | | | | | | | | Ensure these states with assertions in _PyUnicode_CheckConsistency(). | ||||
* | | Unicode: document when the wstr pointer is shared with data | Victor Stinner | 2011-10-03 | 1 | -1/+7 |
| | | | | | | | | Add also related assertions to _PyUnicode_CheckConsistency(). | ||||
* | | Improve string forms and PyUnicode_Resize() documentation | Victor Stinner | 2011-10-03 | 1 | -13/+22 |
| | | | | | | | | | | Remove also the FIXME for resize_copy(): as discussed with Martin, copy the string on resize if the string is not resizable is just fine. | ||||
* | | _PyUnicode_CheckConsistency() checks utf8 field consistency | Victor Stinner | 2011-10-03 | 1 | -0/+2 |
| | | |||||
* | | PyUnicode_Ready() now sets ascii=1 if maxchar < 128 | Victor Stinner | 2011-10-03 | 1 | -16/+25 |
| | | | | | | | | | | ascii=1 is no more reserved to PyASCIIObject. Use PyUnicode_IS_COMPACT_ASCII(obj) to check if obj is a PyASCIIObject (as before). | ||||
* | | Add _PyUnicode_CheckConsistency() macro to help debugging | Victor Stinner | 2011-10-03 | 1 | -0/+46 |
| | | | | | | | | | | | | * Document Unicode string states * Use _PyUnicode_CheckConsistency() to ensure that objects are always consistent. | ||||
* | | PyUnicode_READ_CHAR() ensures that the string is ready | Victor Stinner | 2011-10-02 | 1 | -8/+10 |
| | | |||||
* | | Use Py_UCS1 instead of unsigned char in unicodeobject.h | Victor Stinner | 2011-10-01 | 1 | -2/+2 |
| | | |||||
* | | PyUnicode_WriteChar() raises IndexError on invalid index | Victor Stinner | 2011-10-01 | 1 | -1/+3 |
| | | | | | | | | | | PyUnicode_WriteChar() raises also a ValueError if the string has more than 1 reference. | ||||
* | | _PyUnicode_AsKind() is *not* part of the stable ABI | Victor Stinner | 2011-10-01 | 1 | -0/+2 |
| | | |||||
* | | PyUnicode_CHARACTER_SIZE(): add a reference to PyUnicode_KIND_SIZE() | Victor Stinner | 2011-10-01 | 1 | -2/+5 |
| | | |||||
* | | Add PyUnicode_Copy() function, include it to the public API | Victor Stinner | 2011-09-30 | 1 | -0/+5 |
| | | |||||
* | | _PyUnicode_Ready() cannot be used on ready strings anymore | Victor Stinner | 2011-09-29 | 1 | -7/+9 |
| | | | | | | | | | | | | * 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 | 1 | -10/+0 |
| | | | | | | | | Move these macros to unicodeobject.c | ||||
* | | Add a note in PyUnicode_CopyCharacters() doc: it doesn't write null character | Victor Stinner | 2011-09-29 | 1 | -3/+5 |
| | | | | | | | | Cleanup also the code (avoid the goto). | ||||
* | | 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 |
| | | |||||
* | | Enhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array | Victor Stinner | 2011-09-28 | 2 | -18/+58 |
| | | | | | | | | | | | | Move other various macros to pymcacro.h Thanks Rusty Russell for having written these amazing C macros! | ||||
* | | Move code related to compile from Python.h to compile.h | Victor Stinner | 2011-09-28 | 2 | -21/+12 |
| | | |||||
* | | PyUnicode_CopyCharacters() fails if 'to' has more than 1 reference | Victor Stinner | 2011-09-28 | 1 | -1/+2 |
| | | |||||
* | | Clean up a few tabs that went in with PEP393. | Ezio Melotti | 2011-09-28 | 3 | -18/+18 |
| | | |||||
* | | Mark _PyUnicode_FindMaxCharAndNumSurrogatePairs() as private | Victor Stinner | 2011-09-28 | 1 | -12/+0 |
| | | |||||
* | | Strip trailing spaces in unicodeobject.[ch] | Victor Stinner | 2011-09-28 | 1 | -5/+5 |
| | | |||||
* | | PyUnicode_CopyCharacters() checks for buffer and character overflow | Victor Stinner | 2011-09-28 | 1 | -3/+15 |
| | | | | | | | | It now returns the number of written characters on success. | ||||
* | | Mark PyUnicode_CONVERT_BYTES as private | Victor Stinner | 2011-09-28 | 1 | -15/+0 |
| | | |||||
* | | Rename new macros to conform to naming rules (function macros have "Py" ↵ | Georg Brandl | 2011-09-28 | 1 | -3/+3 |
| | | | | | | | | prefix, not "PY"). | ||||
* | | Set Py_UNICODE_REPLACEMENT_CHARACTER type to Py_UCS4, instead of Py_UNICODE | Victor Stinner | 2011-09-28 | 1 | -1/+1 |
| | | |||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 7 | -270/+543 |
| | | |||||
* | | Fix typo in comment: _PyHash_Double -> _Py_HashDouble. | Mark Dickinson | 2011-09-24 | 1 | -1/+1 |
| | | |||||
* | | Merge 3.2: Fix PyUnicode_AsWideCharString() doc | Victor Stinner | 2011-09-06 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | - Fix PyUnicode_AsWideCharString() doc: size doesn't contain the null character - Fix spelling of the null character | ||||
| * | Fix PyUnicode_AsWideCharString() doc: size doesn't contain the null character | Victor Stinner | 2011-09-06 | 1 | -1/+1 |
| | | | | | | | | Fix also spelling of the null character. | ||||
| * | Post-release version bump. | Georg Brandl | 2011-09-04 | 1 | -1/+1 |
| | |