1. 29 Agu, 2018 2 kayıt (commit)
  2. 28 Agu, 2018 6 kayıt (commit)
    • Victor Stinner's avatar
      bpo-34485: Add _Py_ClearStandardStreamEncoding() (GH-8982) · 124b9eb4
      Victor Stinner yazdı
      * Move Py_SetStandardStreamEncoding() from pylifecycle.c
        to coreconfig.c
      * Add _Py_ClearStandardStreamEncoding() private function.
      * pymain_free() now calls _Py_ClearStandardStreamEncoding().
      * Add assertions add the end of _PyCoreConfig_Read()
      * _PyCoreConfig_Copy(): rename COPY_STR_ATTR() macro
        to COPY_WSTR_ATTR().
      * Fix get_stdio_errors() indentation.
      124b9eb4
    • Victor Stinner's avatar
      bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979) · 2c8ddcf4
      Victor Stinner yazdı
      * _Py_InitializeCore() now sets the LC_CTYPE locale to the user
        preferred locale before checking if the C locale should be coerced
        or not in _PyCoreConfig_Read().
      * Fix pymain_read_conf(): remember if the C locale has been coerced
        when the configuration should be read again if the encoding has
        changed.
      2c8ddcf4
    • Victor Stinner's avatar
      bpo-34485: Enhance init_sys_streams() (GH-8978) · 9e4994d4
      Victor Stinner yazdı
      Python now gets the locale encoding with C code to initialize the encoding
      of standard streams like sys.stdout. Moreover, the encoding is now
      initialized to the Python codec name to get a normalized encoding name and
      to ensure that the codec is loaded. The change avoids importing
      _bootlocale and _locale modules at startup by default.
      
      When the PYTHONIOENCODING environment variable only contains an encoding,
      the error handler is now is now set explicitly to "strict".
      
      Rename also get_default_standard_stream_error_handler() to
      get_stdio_errors().
      
      Reduce the buffer to format the "cpXXX" string (Windows locale encoding).
      9e4994d4
    • Victor Stinner's avatar
      bpo-34403: On HP-UX, force ASCII for C locale (GH-8969) · d500e530
      Victor Stinner yazdı
      On HP-UX with C or POSIX locale, sys.getfilesystemencoding() now returns
      "ascii" instead of "roman8" (when the UTF-8 Mode is disabled and the C locale
      is not coerced).
      
      nl_langinfo(CODESET) announces "roman8" whereas it uses the Latin1
      encoding in practice.
      d500e530
    • Victor Stinner's avatar
      bpo-34527: POSIX locale enables the UTF-8 Mode (GH-8972) · 5cb25895
      Victor Stinner yazdı
      * The UTF-8 Mode is now also enabled by the "POSIX" locale, not only
        by the "C" locale.
      * On FreeBSD, Py_DecodeLocale() and Py_EncodeLocale() now also forces
        the ASCII encoding if the LC_CTYPE locale is "POSIX", not only if
        the LC_CTYPE locale is "C".
      * test_utf8_mode.test_cmd_line() checks also that the command line
        arguments are decoded from UTF-8 when the the UTF-8 Mode is enabled
        with POSIX locale or C locale.
      5cb25895
    • Carl Meyer's avatar
      bpo-21145: Add cached_property decorator in functools (#6982) · d658deac
      Carl Meyer yazdı
      Robust caching of calculated properties is
      harder than it looks at first glance, so add
      a solid, well-tested implementation to the
      standard library.
      d658deac
  3. 27 Agu, 2018 7 kayıt (commit)
  4. 26 Agu, 2018 2 kayıt (commit)
  5. 25 Agu, 2018 12 kayıt (commit)
  6. 24 Agu, 2018 10 kayıt (commit)
  7. 23 Agu, 2018 1 kayıt (commit)