1. 04 May, 2019 1 kayıt (commit)
  2. 02 May, 2019 6 kayıt (commit)
  3. 01 May, 2019 3 kayıt (commit)
    • Victor Stinner's avatar
      bpo-36763: Add _PyCoreConfig_SetString() (GH-13035) · 1a9f0d8e
      Victor Stinner yazdı
      Add 3 new config methods:
      
      * _PyCoreConfig_SetString()
      * _PyCoreConfig_SetWideString()
      * _PyCoreConfig_SetWideStringFromString()
      
      Changes:
      
      * _PyCoreConfig_Copy() returns _PyInitError.
      * Add CONFIG_GET_ENV_DUP().
      1a9f0d8e
    • Victor Stinner's avatar
      bpo-36763: Rework _PyInitError API (GH-13031) · db719754
      Victor Stinner yazdı
      * Remove _PyInitError.user_err field and _Py_INIT_USER_ERR() macro:
        use _Py_INIT_ERR() instead. _Py_ExitInitError() now longer calls
        abort() on error: exit with exit code 1 instead.
      * Add _PyInitError._type private field.
      * exitcode field type is now unsigned int on Windows.
      * Rename prefix field to _func.
      * Rename msg field to err_msg.
      db719754
    • Victor Stinner's avatar
      bpo-36763: Add _PyCoreConfig_SetArgv() (GH-13030) · 5f38b840
      Victor Stinner yazdı
      * Add 2 new config methods:
      
        * _PyCoreConfig_SetArgv()
        * _PyCoreConfig_SetWideArgv()
      
      * Add also an internal _PyCoreConfig_SetPyArgv() method.
      * Remove 'args' parameter from _PyCoreConfig_Read().
      5f38b840
  4. 30 Nis, 2019 1 kayıt (commit)
  5. 29 Nis, 2019 5 kayıt (commit)
  6. 26 Nis, 2019 4 kayıt (commit)
  7. 25 Nis, 2019 2 kayıt (commit)
  8. 24 Nis, 2019 4 kayıt (commit)
  9. 23 Nis, 2019 1 kayıt (commit)
  10. 17 Nis, 2019 2 kayıt (commit)
    • Victor Stinner's avatar
      bpo-36635: Change pyport.h for Py_BUILD_CORE_MODULE define (GH-12853) · 5c75f37d
      Victor Stinner yazdı
      Change PyAPI_FUNC(type), PyAPI_DATA(type) and PyMODINIT_FUNC macros
      of pyport.h when Py_BUILD_CORE_MODULE is defined.
      
      The Py_BUILD_CORE_MODULE define must be now be used to build a C
      extension as a dynamic library accessing Python internals: export the
      PyInit_xxx() function in DLL exports on Windows.
      
      Changes:
      
      * Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE now imply
        Py_BUILD_CORE directy in pyport.h.
      * ceval.c compilation now fails with an error if Py_BUILD_CORE is not
        defined, just to ensure that Python is build with the correct
        defines.
      * setup.py now compiles _pickle.c with Py_BUILD_CORE_MODULE define.
      * setup.py compiles _json.c with Py_BUILD_CORE_MODULE define, rather
        than Py_BUILD_CORE_BUILTIN define
      * PCbuild/pythoncore.vcxproj: Add Py_BUILD_CORE_BUILTIN define.
      5c75f37d
    • Victor Stinner's avatar
      bpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852) · 3092d6b2
      Victor Stinner yazdı
      Fix Python Initialization code on FreeBSD to detect properly when
      stdin file descriptor (fd 0) is invalid.
      
      On FreeBSD, fstat() must be used to check if stdin (fd 0) is valid.
      dup(0) doesn't fail if stdin is invalid in some cases.
      3092d6b2
  11. 13 Nis, 2019 1 kayıt (commit)
  12. 12 Nis, 2019 2 kayıt (commit)
  13. 09 Nis, 2019 2 kayıt (commit)
    • Simeon's avatar
      Fix typos in compile.c comments (GH-12752) · 63b5fc5f
      Simeon yazdı
      63b5fc5f
    • Victor Stinner's avatar
      bpo-34373: Fix time.mktime() on AIX (GH-12726) · 8709490f
      Victor Stinner yazdı
      Fix time.mktime() error handling on AIX for year before 1970.
      
      Other changes:
      
      * mktime(): rename variable 'buf' to 'tm'.
      * _PyTime_localtime():
      
        * Use "localtime" rather than "ctime" in the error message
          (specific to AIX).
        * Always initialize errno to 0 just in case if localtime_r()
          doesn't set errno on error.
        * On AIX, avoid abs() which is limited to int type.
        * EINVAL constant is now always available.
      8709490f
  14. 05 Nis, 2019 1 kayıt (commit)
  15. 01 Nis, 2019 1 kayıt (commit)
  16. 29 Mar, 2019 2 kayıt (commit)
  17. 27 Mar, 2019 2 kayıt (commit)
    • Victor Stinner's avatar
      bpo-36443: Disable C locale coercion and UTF-8 Mode by default (GH-12589) · d929f183
      Victor Stinner yazdı
      bpo-36443, bpo-36202: Since Python 3.7.0, calling Py_DecodeLocale()
      before Py_Initialize() produces mojibake if the LC_CTYPE locale is
      coerced and/or if the UTF-8 Mode is enabled by the user
      configuration. This change fix the issue by disabling LC_CTYPE
      coercion and UTF-8 Mode by default. They must now be enabled
      explicitly (opt-in) using the new _Py_PreInitialize() API with
      _PyPreConfig.
      
      When embedding Python, set coerce_c_locale and utf8_mode attributes
      of _PyPreConfig to -1 to enable automatically these parameters
      depending on the LC_CTYPE locale, environment variables and command
      line arguments
      
      Alternative: Setting Py_UTF8Mode to 1 always explicitly enables the
      UTF-8 Mode.
      
      Changes:
      
      * _PyPreConfig_INIT now sets coerce_c_locale and utf8_mode to 0 by
        default.
      * _Py_InitializeFromArgs() and _Py_InitializeFromWideArgs() can now
        be called with config=NULL.
      d929f183
    • Pablo Galindo's avatar
      bpo-36447, bpo-36447: Fix refleak in _PySys_InitMain() (GH-12586) · 34ef64fe
      Pablo Galindo yazdı
      Fix refleak in sysmodule.c when calling SET_SYS_FROM_STRING_BORROW.
      34ef64fe