Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-38376: Fix _PyUnicode_CheckConsistency() definition (GH-16623) | Victor Stinner | 2019-10-07 | 1 | -10/+0 |
| | | | Always define _PyUnicode_CheckConsistency() in the CPython C API. | ||||
* | bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980) | Zackery Spytz | 2019-05-28 | 1 | -10/+10 |
| | |||||
* | bpo-35134: Create Include/cpython/unicodeobject.h (GH-10680) | Victor Stinner | 2018-11-26 | 1 | -1286/+6 |
| | | | | Move unicodeobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/unicodeobject.h header file. | ||||
* | bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) | Victor Stinner | 2018-11-26 | 1 | -3/+3 |
| | | | | | | | | | | | | Fix str.format(), float.__format__() and complex.__format__() methods for non-ASCII decimal point when using the "n" formatter. Changes: * Rewrite _PyUnicode_InsertThousandsGrouping(): it now requires a _PyUnicodeWriter object for the buffer and a Python str object for digits. * Rename FILL() macro to unicode_fill(), convert it to static inline function, add "assert(0 <= start);" and rework its code. | ||||
* | bpo-35059: Add _PyObject_CAST() macro (GH-10645) | Victor Stinner | 2018-11-22 | 1 | -3/+3 |
| | | | | Add _PyObject_CAST() and _PyVarObject_CAST() macros to cast argument to PyObject* and PyVarObject* properly. | ||||
* | bpo-29240: Fix locale encodings in UTF-8 Mode (#5170) | Victor Stinner | 2018-01-15 | 1 | -14/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify locale.localeconv(), time.tzname, os.strerror() and other functions to ignore the UTF-8 Mode: always use the current locale encoding. Changes: * Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx(). On decoding or encoding error, they return the position of the error and an error message which are used to raise Unicode errors in PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale(). * Replace _Py_DecodeCurrentLocale() with _Py_DecodeLocaleEx(). * PyUnicode_DecodeLocale() now uses _Py_DecodeLocaleEx() for all cases, especially for the strict error handler. * Add _Py_DecodeUTF8Ex(): return more information on decoding error and supports the strict error handler. * Rename _Py_EncodeUTF8_surrogateescape() to _Py_EncodeUTF8Ex(). * Replace _Py_EncodeCurrentLocale() with _Py_EncodeLocaleEx(). * Ignore the UTF-8 mode to encode/decode localeconv(), strerror() and time zone name. * Remove PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and PyUnicode_EncodeLocale() now ignore the UTF-8 mode: always use the "current" locale. * Remove _PyUnicode_DecodeCurrentLocale(), _PyUnicode_DecodeCurrentLocaleAndSize() and _PyUnicode_EncodeCurrentLocale(). | ||||
* | bpo-29240: Ignore UTF-8 Mode in time module (#5148) | Victor Stinner | 2018-01-11 | 1 | -0/+4 |
| | | | | | | time.strftime() must use the current LC_CTYPE encoding, not UTF-8 if the UTF-8 mode is enabled. Add _PyUnicode_DecodeCurrentLocale() function. | ||||
* | bpo-29240: readline now ignores the UTF-8 Mode (#5145) | Victor Stinner | 2018-01-10 | 1 | -0/+10 |
| | | | | | | | | | | | | Add new fuctions ignoring the UTF-8 mode: * _Py_DecodeCurrentLocale() * _Py_EncodeCurrentLocale() * _PyUnicode_DecodeCurrentLocaleAndSize() * _PyUnicode_EncodeCurrentLocale() Modify the readline module to use these functions. Re-enable test_readline.test_nonascii(). | ||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -1/+1 |
| | | | | arguments. (#4746) | ||||
* | bpo-31979: Simplify transforming decimals to ASCII (#4336) | Serhiy Storchaka | 2017-11-13 | 1 | -9/+7 |
| | | | | | in int(), float() and complex() parsers. This also speeds up parsing non-ASCII numbers by around 20%. | ||||
* | remove support for BSD/OS (closes bpo-31624) (#3812) | Benjamin Peterson | 2017-09-29 | 1 | -4/+0 |
| | |||||
* | Spelling fixes (#2902) | Ville Skyttä | 2017-08-03 | 1 | -1/+1 |
| | |||||
* | [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) | Serhiy Storchaka | 2017-06-28 | 1 | -3/+7 |
| | | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters. | ||||
* | bpo-29941: Assert fixes (#886) | T. Wouters | 2017-03-31 | 1 | -0/+4 |
| | | | | | | | | Make a non-Py_DEBUG, asserts-enabled build of CPython possible. This means making sure helper functions are defined when NDEBUG is not defined, not just when Py_DEBUG is defined. Also fix a division-by-zero in obmalloc.c that went unnoticed because in Py_DEBUG mode, elsize is never zero. | ||||
* | bpo-28749: Fixed the documentation of the mapping codec APIs. (#487) | Serhiy Storchaka | 2017-03-19 | 1 | -27/+18 |
| | | | Added the documentation for PyUnicode_Translate(). | ||||
* | Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() | Serhiy Storchaka | 2017-01-22 | 1 | -2/+2 |
| | | | | is now of type "const char *" rather of "char *". | ||||
* | Issue #29058: All stable API extensions added after Python 3.2 are now | Serhiy Storchaka | 2016-12-27 | 1 | -0/+18 |
|\ | | | | | | | | | available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python version supporting this API. | ||||
| * | Issue #29058: All stable API extensions added after Python 3.2 are now | Serhiy Storchaka | 2016-12-27 | 1 | -0/+18 |
| | | | | | | | | | | available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python version supporting this API. | ||||
* | | Issue #29009: Merge 3.6. | Xiang Zhang | 2016-12-19 | 1 | -4/+0 |
|\ \ | |/ | |||||
| * | Issue #29009: Merge 3.5. | Xiang Zhang | 2016-12-19 | 1 | -4/+0 |
| |\ | |||||
| | * | Issue #29009: Remove outdated doc of PyUnicode_RichCompare. | Xiang Zhang | 2016-12-19 | 1 | -4/+0 |
| | | | |||||
* | | | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-05 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-05 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-05 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #19569: Compiler warnings are now emitted if use most of deprecated | Serhiy Storchaka | 2016-11-20 | 1 | -32/+36 |
|/ / | | | | | | | functions. | ||||
* | | Issue #28701: _PyUnicode_EqualToASCIIId and _PyUnicode_EqualToASCIIString now | Serhiy Storchaka | 2016-11-16 | 1 | -2/+2 |
| | | | | | | | | require ASCII right argument and assert this condition in debug build. | ||||
* | | Issue #21449: Removed private function _PyUnicode_CompareWithId. | Serhiy Storchaka | 2016-11-16 | 1 | -9/+0 |
| | | |||||
* | | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId. | Serhiy Storchaka | 2016-11-16 | 1 | -0/+19 |
|\ \ | |/ | | | | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang. | ||||
| * | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId. | Serhiy Storchaka | 2016-11-16 | 1 | -0/+19 |
| | | | | | | | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang. | ||||
* | | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -0/+11 |
|\ \ | |/ | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -0/+11 |
| | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
* | | Issue 28128: Print out better error/warning messages for invalid string ↵ | Eric V. Smith | 2016-10-31 | 1 | -0/+11 |
| | | | | | | | | escapes. Backport to 3.6. | ||||
* | | Issue #28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(), | Serhiy Storchaka | 2016-10-27 | 1 | -8/+25 |
| | | | | | | | | | | PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode(). | ||||
* | | Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4(). | Serhiy Storchaka | 2016-10-02 | 1 | -1/+1 |
|\ \ | |/ | | | | | Original patch by Xiang Zhang. | ||||
| * | Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4(). | Serhiy Storchaka | 2016-10-02 | 1 | -1/+1 |
| | | | | | | | | Original patch by Xiang Zhang. | ||||
* | | Issue #28139: Merge indentation fixes from 3.5 into 3.6 | Martin Panter | 2016-09-17 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #28139: Fix messed up indentation | Martin Panter | 2016-09-17 | 1 | -1/+1 |
| | | | | | | | | | | Also update the classmethod and staticmethod doc strings and comments to match the RST documentation. | ||||
* | | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵ | Christian Heimes | 2016-09-13 | 1 | -1/+1 |
| | | | | | | | | optimize memcpy(). | ||||
* | | Issue #26900: Excluded underscored names and other private API from limited API. | Serhiy Storchaka | 2016-09-11 | 1 | -0/+2 |
| | | |||||
* | | simplify Py_UCSN definitions with stdint types | Benjamin Peterson | 2016-09-08 | 1 | -15/+3 |
| | | |||||
* | | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529) | Steve Dower | 2016-09-08 | 1 | -6/+2 |
| | | |||||
* | | Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec ↵ | Steve Dower | 2016-09-07 | 1 | -1/+1 |
| | | | | | | | | lookup | ||||
* | | Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation. | Serhiy Storchaka | 2016-09-06 | 1 | -0/+8 |
| | | |||||
* | | Merge spelling and grammar fixes from 3.5 | Martin Panter | 2016-08-05 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix spelling and grammar in documentation and code comments | Martin Panter | 2016-08-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
|\ \ | |/ | | | | | messages. | ||||
| * | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | | |||||
* | | Issue #15984: Merge PyUnicode doc from 3.5 | Martin Panter | 2016-04-15 | 1 | -18/+10 |
|\ \ | |/ | |||||
| * | Issue #15984: Correct PyUnicode_FromObject() and _FromEncodedObject() docs | Martin Panter | 2016-04-15 | 1 | -16/+8 |
| | | |||||
| * | Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc | Martin Panter | 2016-04-15 | 1 | -4/+4 |
| | | | | | | | | This affects documentation, code comments, and a debugging messages. |