1. 27 May, 2019 8 commits
    • Victor Stinner's avatar
      bpo-36763: Implement the PEP 587 (GH-13592) · 331a6a56
      Victor Stinner authored
      * Add a whole new documentation page:
        "Python Initialization Configuration"
      * PyWideStringList_Append() return type is now PyStatus,
        instead of int
      * PyInterpreterState_New() now calls PyConfig_Clear() if
        PyConfig_InitPythonConfig() fails.
      * Rename files:
      
        * Python/coreconfig.c => Python/initconfig.c
        * Include/cpython/coreconfig.h => Include/cpython/initconfig.h
        * Include/internal/: pycore_coreconfig.h => pycore_initconfig.h
      
      * Rename structures
      
        * _PyCoreConfig => PyConfig
        * _PyPreConfig => PyPreConfig
        * _PyInitError => PyStatus
        * _PyWstrList => PyWideStringList
      
      * Rename PyConfig fields:
      
        * use_module_search_paths => module_search_paths_set
        * module_search_path_env => pythonpath_env
      
      * Rename PyStatus field: _func => func
      * PyInterpreterState: rename core_config field to config
      * Rename macros and functions:
      
        * _PyCoreConfig_SetArgv() => PyConfig_SetBytesArgv()
        * _PyCoreConfig_SetWideArgv() => PyConfig_SetArgv()
        * _PyCoreConfig_DecodeLocale() => PyConfig_SetBytesString()
        * _PyInitError_Failed() => PyStatus_Exception()
        * _Py_INIT_ERROR_TYPE_xxx enums => _PyStatus_TYPE_xxx
        * _Py_UnixMain() => Py_BytesMain()
        * _Py_ExitInitError() => Py_ExitStatusException()
        * _Py_PreInitializeFromArgs() => Py_PreInitializeFromBytesArgs()
        * _Py_PreInitializeFromWideArgs() => Py_PreInitializeFromArgs()
        * _Py_PreInitialize() => Py_PreInitialize()
        * _Py_RunMain() => Py_RunMain()
        * _Py_InitializeFromConfig() => Py_InitializeFromConfig()
        * _Py_INIT_XXX() => _PyStatus_XXX()
        * _Py_INIT_FAILED() => _PyStatus_EXCEPTION()
      
      * Rename 'err' PyStatus variables to 'status'
      * Convert RUN_CODE() macro to config_run_code() static inline function
      * Remove functions:
      
        * _Py_InitializeFromArgs()
        * _Py_InitializeFromWideArgs()
        * _PyInterpreterState_GetCoreConfig()
      331a6a56
    • Yury Selivanov's avatar
      bpo-37027: Return a proxy socket object from transp.get_extra_info('socket') (GH-13530) · 8cd5165b
      Yury Selivanov authored
      
      
      Return a safe to use proxy socket object from `transport.get_extra_info('socket')`
      
      
      
      
      https://bugs.python.org/issue37027
      8cd5165b
    • Rémi Lapeyre's avatar
    • Andrew Svetlov's avatar
    • Xtreak's avatar
      bpo-37047: Refactor AsyncMock setup logic for autospeccing (GH-13574) · ff6b2e66
      Xtreak authored
      Handle late binding and attribute access in unittest.mock.AsyncMock
      setup for autospeccing.
      ff6b2e66
    • Yury Selivanov's avatar
      bpo-32528: Make asyncio.CancelledError a BaseException. (GH-13528) · 431b540b
      Yury Selivanov authored
      This will address the common mistake many asyncio users make:
      an "except Exception" clause breaking Tasks cancellation.
      
      In addition to this change, we stop inheriting asyncio.TimeoutError
      and asyncio.InvalidStateError from their concurrent.futures.*
      counterparts.  There's no point for these exceptions to share the
      inheritance chain.
      
      In 3.9 we'll focus on implementing supervisors and cancel scopes,
      which should allow better handling of all exceptions, including
      SystemExit and KeyboardInterrupt
      431b540b
    • Yury Selivanov's avatar
      bpo-37028: asyncio REPL; activated via 'python -m asyncio'. (GH-13472) · 16cefb0b
      Yury Selivanov authored
      This makes it easy to play with asyncio APIs with simply
      using async/await in the REPL.
      16cefb0b
    • Victor Stinner's avatar
      bpo-36829: Add _PyErr_WriteUnraisableMsg() (GH-13488) · 71c52e30
      Victor Stinner authored
      * sys.unraisablehook: add 'err_msg' field to UnraisableHookArgs.
      * Use _PyErr_WriteUnraisableMsg() in _ctypes _DictRemover_call()
        and gc delete_garbage().
      71c52e30
  2. 26 May, 2019 10 commits
  3. 25 May, 2019 5 commits
  4. 24 May, 2019 17 commits