1. 06 Eyl, 2018 1 kayıt (commit)
  2. 05 Eyl, 2018 1 kayıt (commit)
  3. 04 Eyl, 2018 3 kayıt (commit)
  4. 03 Eyl, 2018 1 kayıt (commit)
  5. 01 Eyl, 2018 2 kayıt (commit)
  6. 31 Agu, 2018 2 kayıt (commit)
  7. 30 Agu, 2018 2 kayıt (commit)
  8. 29 Agu, 2018 4 kayıt (commit)
    • Victor Stinner's avatar
      bpo-34523: Py_DecodeLocale() use UTF-8 on Windows (GH-8998) · c5989cd8
      Victor Stinner yazdı
      Py_DecodeLocale() and Py_EncodeLocale() now use the UTF-8 encoding on
      Windows if Py_LegacyWindowsFSEncodingFlag is zero.
      
      pymain_read_conf() now sets Py_LegacyWindowsFSEncodingFlag in its
      loop, but restore its value at exit.
      c5989cd8
    • Victor Stinner's avatar
      bpo-34523: Add _PyCoreConfig.filesystem_encoding (GH-8963) · b2457efc
      Victor Stinner yazdı
      _PyCoreConfig_Read() is now responsible to choose the filesystem
      encoding and error handler. Using Py_Main(), the encoding is now
      chosen even before calling Py_Initialize().
      
      _PyCoreConfig.filesystem_encoding is now the reference, instead of
      Py_FileSystemDefaultEncoding, for the Python filesystem encoding.
      
      Changes:
      
      * Add filesystem_encoding and filesystem_errors to _PyCoreConfig
      * _PyCoreConfig_Read() now reads the locale encoding for the file
        system encoding.
      * PyUnicode_EncodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()
        now use the interpreter configuration rather than
        Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
        global configuration variables.
      * Add _Py_SetFileSystemEncoding() and _Py_ClearFileSystemEncoding()
        private functions to only modify Py_FileSystemDefaultEncoding and
        Py_FileSystemDefaultEncodeErrors in coreconfig.c.
      * _Py_CoerceLegacyLocale() now takes an int rather than
        _PyCoreConfig for the warning.
      b2457efc
    • Victor Stinner's avatar
      bpo-34485, Windows: LC_CTYPE set to user preference (GH-8988) · 177d921c
      Victor Stinner yazdı
      On Windows, the LC_CTYPE is now set to the user preferred locale at
      startup: _Py_SetLocaleFromEnv(LC_CTYPE) is now called during the
      Python initialization. Previously, the LC_CTYPE locale was "C" at
      startup, but changed when calling setlocale(LC_CTYPE, "") or
      setlocale(LC_ALL, "").
      
      pymain_read_conf() now also calls _Py_SetLocaleFromEnv(LC_CTYPE) to
      behave as _Py_InitializeCore(). Moreover, it doesn't save/restore the
      LC_ALL anymore.
      
      On Windows, standard streams like sys.stdout now always use
      surrogateescape error handler by default (ignore the locale).
      177d921c
    • Victor Stinner's avatar
      bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986) · 315877dc
      Victor Stinner yazdı
      Standard streams like sys.stdout now use the "surrogateescape" error
      handler, instead of "strict", on the POSIX locale (when the C locale is not
      coerced and the UTF-8 Mode is disabled).
      
      Add tests on sys.stdout.errors with LC_ALL=POSIX.
      315877dc
  9. 28 Agu, 2018 4 kayıt (commit)
    • 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
  10. 27 Agu, 2018 3 kayıt (commit)
  11. 26 Agu, 2018 1 kayıt (commit)
  12. 25 Agu, 2018 2 kayıt (commit)
  13. 24 Agu, 2018 1 kayıt (commit)
  14. 23 Agu, 2018 2 kayıt (commit)
  15. 22 Agu, 2018 1 kayıt (commit)
  16. 20 Agu, 2018 1 kayıt (commit)
  17. 19 Agu, 2018 2 kayıt (commit)
  18. 17 Agu, 2018 1 kayıt (commit)
  19. 16 Agu, 2018 1 kayıt (commit)
  20. 15 Agu, 2018 3 kayıt (commit)
  21. 14 Agu, 2018 1 kayıt (commit)
  22. 12 Agu, 2018 1 kayıt (commit)