summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Closes #27781: Removes special cases for the experimental aspect of PEP 529Steve Dower2016-11-071-10/+1
| | | | |
| * | | | Issue 28128: Print out better error/warning messages for invalid string ↵Eric V. Smith2016-10-311-6/+32
| | | | | | | | | | | | | | | | | | | | escapes. Backport to 3.6.
* | | | | Issue 28128: Print out better error/warning messages for invalid string escapes.Eric V. Smith2016-10-311-6/+32
| | | | |
* | | | | Issue #28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(),Serhiy Storchaka2016-10-271-0/+21
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode().
| * | | | Issue #28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(),Serhiy Storchaka2016-10-271-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode().
* | | | | Issue #28408: Fixed a leak and remove redundant code in ↵Serhiy Storchaka2016-10-251-18/+12
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | _PyUnicodeWriter_Finish(). Patch by Xiang Zhang.
| * | | | Issue #28408: Fixed a leak and remove redundant code in ↵Serhiy Storchaka2016-10-251-18/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _PyUnicodeWriter_Finish(). Patch by Xiang Zhang.
* | | | | Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug ↵Serhiy Storchaka2016-10-251-10/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | build.
| * | | | Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug ↵Serhiy Storchaka2016-10-251-10/+2
| |\ \ \ \ | | |/ / / | | | | | | | | | | build.
| | * | | Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug ↵Serhiy Storchaka2016-10-251-10/+2
| | |\ \ \ | | | |/ / | | | | | | | | | | build.
| | | * | Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug ↵Serhiy Storchaka2016-10-251-10/+2
| | | | | | | | | | | | | | | | | | | | build.
* | | | | Issue #28439: Remove redundant checks in PyUnicode_EncodeLocale andSerhiy Storchaka2016-10-231-27/+20
| | | | | | | | | | | | | | | | | | | | PyUnicode_DecodeLocaleAndSize. Patch by Xiang Zhang.
* | | | | Issue #28511: Use the "U" format instead of "O!" in PyArg_Parse*.Serhiy Storchaka2016-10-231-3/+3
| | | | |
* | | | | Issue #28504: Cleanup unicode_decode_call_errorhandler_wchar/writer.Serhiy Storchaka2016-10-221-16/+8
| | | | | | | | | | | | | | | | | | | | Patch by Xiang Zhang.
* | | | | Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raisingSerhiy Storchaka2016-10-211-5/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new exception with setting current exception as __cause__. _PyErr_FormatFromCause(exception, format, args...) is equivalent to Python raise exception(format % args) from sys.exc_info()[1]
| * | | | Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raisingSerhiy Storchaka2016-10-211-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new exception with setting current exception as __cause__. _PyErr_FormatFromCause(exception, format, args...) is equivalent to Python raise exception(format % args) from sys.exc_info()[1]
* | | | | merge 3.6 (#28454)Benjamin Peterson2016-10-161-4/+4
|\ \ \ \ \ | |/ / / /
| * | | | merge 3.5 (#28454)Benjamin Peterson2016-10-161-4/+4
| |\ \ \ \ | | |/ / /
| | * | | remove extra PyErr_Format arguments (closes #28454)Benjamin Peterson2016-10-161-4/+4
| | | | | | | | | | | | | | | | | | | | Patch from Xiang Zhang.
* | | | | Merge 3.6Victor Stinner2016-10-121-3/+3
|\ \ \ \ \ | |/ / / /
| * | | | Fix _Py_normalize_encoding() commandVictor Stinner2016-10-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | It's not exactly the same than encodings.normalize_encoding(): the C function also converts to lowercase.
* | | | | merge 3.6 (#28417)Benjamin Peterson2016-10-121-1/+0
|\ \ \ \ \ | |/ / / /
| * | | | va_end vargs2 once (closes #28417)Benjamin Peterson2016-10-121-1/+0
| | | | |
* | | | | Issue #28400: Removed uncessary checks in unicode_char and resize_copy.Serhiy Storchaka2016-10-091-9/+5
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. In resize_copy we don't need to PyUnicode_READY(unicode) since when it's not PyUnicode_WCHAR_KIND it should be ready. 2. In unicode_char, PyUnicode_1BYTE_KIND is handled by get_latin1_char. Patch by Xiang Zhang.
* | | | Merge from 3.5.Serhiy Storchaka2016-10-081-3/+7
|\ \ \ \ | |/ / /
| * | | Issue #28379: Added sanity checks and tests for PyUnicode_CopyCharacters().Serhiy Storchaka2016-10-081-3/+7
| | | | | | | | | | | | | | | | Patch by Xiang Zhang.
* | | | Merge 3.5Victor Stinner2016-09-211-1/+1
|\ \ \ \ | |/ / /
| * | | Fix PyUnicode_FromFormatV() error handlingVictor Stinner2016-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | Issue #28233: Fix a memory leak if the format string contains a non-ASCII character, destroy the unicode writer.
* | | | va_end() all va_copy()ed va_lists.Christian Heimes2016-09-211-0/+3
| | | |
* | | | replace usage of Py_VA_COPY with the (C99) standard va_copyBenjamin Peterson2016-09-211-3/+2
| | | |
* | | | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵Christian Heimes2016-09-131-16/+16
| | | | | | | | | | | | | | | | optimize memcpy().
* | | | remove all usage of Py_LOCALBenjamin Peterson2016-09-091-1/+1
| | | |
* | | | #27364: Deprecate invalid escape strings in str/byutes.R David Murray2016-09-081-0/+3
| | | | | | | | | | | | | | | | Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.
* | | | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)Steve Dower2016-09-081-19/+27
| | | |
* | | | more PY_LONG_LONG to long longBenjamin Peterson2016-09-081-2/+2
| | | |
* | | | replace some Py_LOCAL_INLINE with the inline keywordBenjamin Peterson2016-09-071-9/+10
| | | |
* | | | merge 3.5Benjamin Peterson2016-09-071-3/+3
|\ \ \ \ | |/ / /
| * | | promote some shifts to unsigned, so as not to invoke undefined behaviorBenjamin Peterson2016-09-071-3/+3
| | | |
* | | | Issue #27182: Add support for path-like objects to PyUnicode_FSDecoder().Brett Cannon2016-09-071-14/+37
| | | |
* | | | Optimize unicode_escape and raw_unicode_escapeVictor Stinner2016-09-071-374/+314
| | | | | | | | | | | | | | | | Issue #16334. Patch written by Serhiy Storchaka.
* | | | _PyUnicodeWriter: assert that max character <= MAX_UNICODEVictor Stinner2016-09-061-0/+3
| | | |
* | | | Issue #26027: Support path-like objects in PyUnicode-FSConverter().Brett Cannon2016-09-061-12/+13
| | | | | | | | | | | | | | | | | | | | This is to add support for os.exec*() and os.spawn*() functions. Part of PEP 519.
* | | | replace Python aliases for standard integer types with the standard integer ↵Benjamin Peterson2016-09-061-4/+4
| | | | | | | | | | | | | | | | types (#17884)
* | | | Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.Serhiy Storchaka2016-09-061-18/+24
| | | |
* | | | replace PY_LONG_LONG with long longBenjamin Peterson2016-09-061-2/+2
| | | |
* | | | require a long long data type (closes #27961)Benjamin Peterson2016-09-061-6/+0
| | | |
* | | | Issue #27938: Add a fast-path for us-ascii encodingVictor Stinner2016-09-051-56/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other changes: * Rewrite _Py_normalize_encoding() as a C implementation of encodings.normalize_encoding(). For example, " utf-8 " is now normalized to "utf_8". So the fast path is now used for more name variants of the same encoding. * Avoid strcpy() when encoding is NULL: call directly the UTF-8 codec
* | | | PEP 7 style for if/else in CVictor Stinner2016-09-021-16/+32
| | | | | | | | | | | | | | | | Add also a newline for readability in normalize_encoding().
* | | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-7/+7
| | | |
* | | | Issue #26754: Undocumented support of general bytes-like objectsSerhiy Storchaka2016-08-061-6/+7
| | | | | | | | | | | | | | | | as path in compile() and similar functions is now deprecated.