1. 26 Kas, 2018 2 kayıt (commit)
    • Victor Stinner's avatar
      bpo-35134: Create Include/cpython/unicodeobject.h (GH-10680) · 75e4699b
      Victor Stinner yazdı
      Move unicodeobject.h code surrounded by "#ifndef Py_LIMITED_API"
      to a new Include/cpython/unicodeobject.h header file.
      75e4699b
    • Victor Stinner's avatar
      bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) · 59423e3d
      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.
      59423e3d
  2. 22 Kas, 2018 1 kayıt (commit)
  3. 15 Ock, 2018 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-29240: Fix locale encodings in UTF-8 Mode (#5170) · 7ed7aead
      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().
      7ed7aead
  4. 11 Ock, 2018 1 kayıt (commit)
  5. 10 Ock, 2018 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-29240: readline now ignores the UTF-8 Mode (#5145) · 2cba6b85
      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().
      2cba6b85
  6. 15 Ara, 2017 1 kayıt (commit)
  7. 13 Kas, 2017 1 kayıt (commit)
  8. 29 Eyl, 2017 1 kayıt (commit)
  9. 03 Agu, 2017 1 kayıt (commit)
  10. 28 Haz, 2017 1 kayıt (commit)
  11. 31 Mar, 2017 1 kayıt (commit)
    • T. Wouters's avatar
      bpo-29941: Assert fixes (#886) · a00c3fd1
      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.
      a00c3fd1
  12. 19 Mar, 2017 1 kayıt (commit)
  13. 22 Ock, 2017 1 kayıt (commit)
  14. 27 Ara, 2016 1 kayıt (commit)
  15. 19 Ara, 2016 1 kayıt (commit)
  16. 05 Ara, 2016 1 kayıt (commit)
  17. 20 Kas, 2016 1 kayıt (commit)
  18. 16 Kas, 2016 4 kayıt (commit)
  19. 31 Eki, 2016 2 kayıt (commit)
  20. 27 Eki, 2016 1 kayıt (commit)
  21. 02 Eki, 2016 1 kayıt (commit)
  22. 17 Eyl, 2016 1 kayıt (commit)
  23. 13 Eyl, 2016 1 kayıt (commit)
  24. 11 Eyl, 2016 1 kayıt (commit)
  25. 08 Eyl, 2016 2 kayıt (commit)
  26. 07 Eyl, 2016 1 kayıt (commit)
  27. 06 Eyl, 2016 1 kayıt (commit)
  28. 04 Agu, 2016 1 kayıt (commit)
  29. 17 Nis, 2016 1 kayıt (commit)
  30. 15 Nis, 2016 2 kayıt (commit)
  31. 05 Nis, 2016 1 kayıt (commit)
  32. 02 Kas, 2015 1 kayıt (commit)
  33. 08 Eki, 2015 1 kayıt (commit)
    • Victor Stinner's avatar
      Issue #25318: Add _PyBytesWriter API · fdfbf781
      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.
      fdfbf781