- 26 Kas, 2018 2 kayıt (commit)
-
-
Victor Stinner yazdı
Move unicodeobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/unicodeobject.h header file.
-
Victor Stinner yazdı
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.
-
- 22 Kas, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
Add _PyObject_CAST() and _PyVarObject_CAST() macros to cast argument to PyObject* and PyVarObject* properly.
-
- 15 Ock, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
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().
-
- 11 Ock, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
time.strftime() must use the current LC_CTYPE encoding, not UTF-8 if the UTF-8 mode is enabled. Add _PyUnicode_DecodeCurrentLocale() function.
-
- 10 Ock, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
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().
-
- 15 Ara, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 13 Kas, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
in int(), float() and complex() parsers. This also speeds up parsing non-ASCII numbers by around 20%.
-
- 29 Eyl, 2017 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 03 Agu, 2017 1 kayıt (commit)
-
-
Ville Skyttä yazdı
-
- 28 Haz, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.
-
- 31 Mar, 2017 1 kayıt (commit)
-
-
T. Wouters yazdı
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.
-
- 19 Mar, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Added the documentation for PyUnicode_Translate().
-
- 22 Ock, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
is now of type "const char *" rather of "char *".
-
- 27 Ara, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python version supporting this API.
-
- 19 Ara, 2016 1 kayıt (commit)
-
-
Xiang Zhang yazdı
-
- 05 Ara, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 20 Kas, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
functions.
-
- 16 Kas, 2016 4 kayıt (commit)
-
-
Serhiy Storchaka yazdı
require ASCII right argument and assert this condition in debug build.
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang.
-
Serhiy Storchaka yazdı
The latter function is more readable, faster and doesn't raise exceptions.
-
- 31 Eki, 2016 2 kayıt (commit)
-
-
Eric V. Smith yazdı
-
Eric V. Smith yazdı
-
- 27 Eki, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode().
-
- 02 Eki, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Original patch by Xiang Zhang.
-
- 17 Eyl, 2016 1 kayıt (commit)
-
-
Martin Panter yazdı
Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
-
- 13 Eyl, 2016 1 kayıt (commit)
-
-
Christian Heimes yazdı
-
- 11 Eyl, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 08 Eyl, 2016 2 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
Steve Dower yazdı
-
- 07 Eyl, 2016 1 kayıt (commit)
-
-
Steve Dower yazdı
-
- 06 Eyl, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 04 Agu, 2016 1 kayıt (commit)
-
-
Martin Panter yazdı
-
- 17 Nis, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 15 Nis, 2016 2 kayıt (commit)
-
-
Martin Panter yazdı
-
Martin Panter yazdı
This affects documentation, code comments, and a debugging messages.
-
- 05 Nis, 2016 1 kayıt (commit)
-
-
Martin Panter yazdı
-
- 02 Kas, 2015 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 08 Eki, 2015 1 kayıt (commit)
-
-
Victor Stinner yazdı
Add a new private API to optimize Unicode encoders. It uses a small buffer allocated on the stack and supports overallocation. Use _PyBytesWriter API for UCS1 (ASCII and Latin1) and UTF-8 encoders. Enable overallocation for the UTF-8 encoder with error handlers. unicode_encode_ucs1(): initialize collend to collstart+1 to not check the current character twice, we already know that it is not ASCII.
-