1. 16 Dec, 2017 7 commits
  2. 15 Dec, 2017 15 commits
  3. 14 Dec, 2017 14 commits
  4. 13 Dec, 2017 4 commits
    • Yury Selivanov's avatar
      bfbf04ef
    • Victor Stinner's avatar
      bpo-32030: Add _PyPathConfig_ComputeArgv0() (#4845) · 11a247df
      Victor Stinner authored
      Changes:
      
      * Split _PySys_SetArgvWithError() into subfunctions for Py_Main():
      
        * Create the Python list object
        * Set sys.argv to the list
        * Compute argv0
        * Prepend argv0 to sys.path
      
      * Add _PyPathConfig_ComputeArgv0()
      * Remove _PySys_SetArgvWithError()
      * Py_Main() now splits the code to compute sys.argv/path0 and the
        code to update the sys module: add pymain_compute_argv()
        subfunction.
      11a247df
    • Yury Selivanov's avatar
      bpo-32296: Implement asyncio.get_event_loop and _get_running_loop in C. (#4827) · a70232f2
      Yury Selivanov authored
      asyncio.get_event_loop(), and, subsequently asyncio._get_running_loop()
      are one of the most frequently executed functions in asyncio.  They also
      can't be sped up by third-party event loops like uvloop.
      
      When implemented in C they become 4x faster.
      a70232f2
    • Victor Stinner's avatar
      pymain_set_sys_argv() now copies argv (#4838) · d5dda98f
      Victor Stinner authored
      bpo-29240, bpo-32030:
      
      * Rename pymain_set_argv() to pymain_set_sys_argv()
      * pymain_set_sys_argv() now creates of copy of argv and modify the
        copy, rather than modifying pymain->argv
      * Call pymain_set_sys_argv() earlier: before pymain_run_python(), but
        after pymain_get_importer().
      * Add _PySys_SetArgvWithError() to handle errors
      d5dda98f