summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #13441: _PyUnicode_CheckConsistency() dumps the string if the maximumVictor Stinner2011-11-211-0/+13
| | | | | | | character is bigger than U+10FFFF and locale.localeconv() dumps the string before decoding it. Temporary hack to debug the issue #13441.
* Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()Victor Stinner2011-11-213-5/+5
| | | | And PyUnicode_GetSize() => PyUnicode_GetLength()
* UnicodeTranslateError uses the new Unicode APIVictor Stinner2011-11-211-3/+3
| | | | The index is a character index, not a index in a Py_UNICODE* string.
* UnicodeEncodeError uses the new Unicode APIVictor Stinner2011-11-201-3/+3
| | | | The index is a character index, not a index in a Py_UNICODE* string.
* PyObject_Str() ensures that the result string is readyVictor Stinner2011-11-202-2/+5
| | | | | | | and check the string consistency. _PyUnicode_CheckConsistency() doesn't check the hash anymore. It should be possible to call this function even if hash(str) was already called.
* stringlib: remove unused STRINGLIB_FILLVictor Stinner2011-11-206-6/+0
|
* PyUnicode_AsUTF32String() calls directly _PyUnicode_EncodeUTF32(),Victor Stinner2011-11-201-6/+1
| | | | instead of calling the deprecated PyUnicode_EncodeUTF32() function
* _PyUnicode_CheckConsistency() also checks maxchar maximum value,Victor Stinner2011-11-201-3/+9
| | | | not only its minimum value
* Remove the two ugly and unused WRITE_ASCII_OR_WSTR and WRITE_WSTR macrosVictor Stinner2011-11-201-18/+0
|
* Reuse surrogate macros in UTF-16 decoderVictor Stinner2011-11-201-5/+4
|
* charmap_encoding_error() uses the new Unicode APIVictor Stinner2011-11-201-3/+13
|
* Use PyUnicode_EncodeCodePage() instead of PyUnicode_EncodeMBCS() withVictor Stinner2011-11-201-16/+3
| | | | PyUnicode_AsUnicodeAndSize()
* charmap encoders uses Py_UCS4, not Py_UNICODEVictor Stinner2011-11-201-7/+4
|
* Issue #10227: Add an allocation cache for a single slice object.Antoine Pitrou2011-11-181-7/+29
| | | | Patch by Stefan Behnel.
* Catch PyUnicode_AS_UNICODE() errorsVictor Stinner2011-11-161-11/+22
|
* #13406: silence deprecation warnings in test_codecs.Ezio Melotti2011-11-161-1/+1
|
* Issue #13333: The UTF-7 decoder now accepts lone surrogatesAntoine Pitrou2011-11-151-9/+7
|\ | | | | | | (the encoder already accepts them).
| * Issue #13333: The UTF-7 decoder now accepts lone surrogatesAntoine Pitrou2011-11-151-9/+5
| | | | | | | | (the encoder already accepts them).
* | Issue #13389: Full garbage collection passes now clear the freelists forAntoine Pitrou2011-11-142-6/+20
| | | | | | | | | | list and dict objects. They already cleared other freelists in the interpreter.
* | Use the small object allocator for small bytearraysAntoine Pitrou2011-11-121-5/+5
| |
* | Sanitize reference management in the utf-8 encoderAntoine Pitrou2011-11-121-5/+4
| |
* | Issue #13161: fix doc strings of __i*__ operators. Closes #13161Eli Bendersky2011-11-111-10/+10
|\ \ | |/
| * Issue #13161: fix doc strings of __i*__ operatorsEli Bendersky2011-11-111-10/+10
| |
* | Fix regression on 2-byte wchar_t systems (Windows)Antoine Pitrou2011-11-111-7/+12
| |
* | Avoid crashing because of an unaligned word accessAntoine Pitrou2011-11-111-1/+9
| |
* | Issue #13149: Speed up append-only StringIO objects.Antoine Pitrou2011-11-101-1/+1
| | | | | | | | This is very similar to the "lazy strings" idea.
* | Fix and deprecated the unicode_internal codecVictor Stinner2011-11-101-6/+22
| | | | | | | | | | | | unicode_internal codec uses Py_UNICODE instead of the real internal representation (PEP 393: Py_UCS1, Py_UCS2 or Py_UCS4) for backward compatibility.
* | Prefer Py_UCS4 or wchar_t over Py_UNICODEVictor Stinner2011-11-101-8/+7
| |
* | PyUnicode_DecodeCharmap() uses the new Unicode APIVictor Stinner2011-11-101-7/+17
| |
* | Avoid PyUnicode_AS_UNICODE in the UTF-8 encoderVictor Stinner2011-11-101-4/+11
| |
* | Fix "unicode_escape" encoderVictor Stinner2011-11-101-1/+1
| |
* | Fix UTF-7 encoder on WindowsVictor Stinner2011-11-101-6/+4
| |
* | Port encoders from Py_UNICODE API to unicode object API.Martin v. Löwis2011-11-101-188/+187
| |
* | Strip trailing spacesVictor Stinner2011-11-081-4/+4
| |
* | Fix a compiler warning: use unsiged for maxchar in unicode_widen()Victor Stinner2011-11-081-1/+1
| |
* | Fix the code page decoderVictor Stinner2011-11-081-17/+44
| | | | | | | | | | | | | | * unicode_decode_call_errorhandler() now supports the PyUnicode_WCHAR_KIND kind * unicode_decode_call_errorhandler() calls copy_characters() instead of PyUnicode_CopyCharacters()
* | Fix missing gotoAntoine Pitrou2011-11-081-0/+1
| |
* | Make _PyUnicode_FromId return borrowed references.Martin v. Löwis2011-11-073-9/+4
| | | | | | | | http://mail.python.org/pipermail/python-dev/2011-November/114347.html
* | Change decoders to use Unicode API instead of Py_UNICODE.Martin v. Löwis2011-11-081-420/+292
| |
* | Revert "Accept None as start and stop parameters for list.index() and ↵Petri Lehtinen2011-11-062-22/+7
|\ \ | |/ | | | | | | | | tuple.index()" Issue #13340.
| * Revert "Accept None as start and stop parameters for list.index() and ↵Petri Lehtinen2011-11-062-22/+7
| | | | | | | | | | | | tuple.index()" Issue #13340.
* | Issue #13350: Replace most usages of PyUnicode_Format by PyUnicode_FromFormat.Amaury Forgeot d'Arc2011-11-061-16/+2
| |
* | Accept None as start and stop parameters for list.index() and tuple.index().Petri Lehtinen2011-11-052-7/+22
|\ \ | |/ | | | | Closes #13340.
| * Accept None as start and stop parameters for list.index() and tuple.index()Petri Lehtinen2011-11-052-7/+22
| | | | | | | | Closes #13340.
* | add introspection to range objects (closes #9896)Benjamin Peterson2011-11-051-1/+9
| | | | | | | | Patch by Daniel Urban.
* | Fix gdb/libpython.py for not ready Unicode stringsVictor Stinner2011-11-041-2/+5
| | | | | | | | | | _PyUnicode_CheckConsistency() checks also hash and length value for not ready Unicode strings.
* | Replace tabs by spacesVictor Stinner2011-11-041-46/+46
| |
* | Drop Py_UNICODE based encode exceptions.Martin v. Löwis2011-11-041-60/+22
| |
* | Port code page codec to Unicode API.Martin v. Löwis2011-11-041-54/+69
| |
* | Port error handlers from Py_UNICODE indexing to code point indexing.Martin v. Löwis2011-11-041-0/+5
| |