1. 23 Kas, 2017 1 kayıt (commit)
  2. 22 Kas, 2017 3 kayıt (commit)
    • Victor Stinner's avatar
      bpo-32030: Add _PyCoreConfig.module_search_path_env (#4504) · d4341109
      Victor Stinner yazdı
      Changes:
      
      * Py_Main() initializes _PyCoreConfig.module_search_path_env from
        the PYTHONPATH environment variable.
      * PyInterpreterState_New() now initializes core_config and config
        fields
      * Compute sys.path a little bit ealier in
        _Py_InitializeMainInterpreter() and new_interpreter()
      * Add _Py_GetPathWithConfig() private function.
      d4341109
    • Victor Stinner's avatar
      bpo-27535: Optimize warnings.warn() (#4508) · 82656276
      Victor Stinner yazdı
      * Optimize warnings.filterwarnings(). Replace re.compile('') with
        None to avoid the cost of calling a regex.match() method, whereas
        it always matchs.
      * Optimize get_warnings_attr(): replace PyObject_GetAttrString() with
        _PyObject_GetAttrId().
      
      Cleanup also create_filter():
      
      * Use _Py_IDENTIFIER() to allow to cleanup strings at Python
        finalization
      * Replace Py_FatalError() with a regular exceptions
      82656276
    • Victor Stinner's avatar
  3. 21 Kas, 2017 7 kayıt (commit)
  4. 20 Kas, 2017 6 kayıt (commit)
  5. 19 Kas, 2017 3 kayıt (commit)
  6. 18 Kas, 2017 5 kayıt (commit)
  7. 17 Kas, 2017 2 kayıt (commit)
  8. 16 Kas, 2017 8 kayıt (commit)
  9. 15 Kas, 2017 5 kayıt (commit)
    • Victor Stinner's avatar
      bpo-32030: Split Py_Main() into subfunctions (#4399) · f7e5b56c
      Victor Stinner yazdı
      * Don't use "Python runtime" anymore to parse command line options or
        to get environment variables: pymain_init() is now a strict
        separation.
      * Use an error message rather than "crashing" directly with
        Py_FatalError(). Limit the number of calls to Py_FatalError(). It
        prepares the code to handle errors more nicely later.
      * Warnings options (-W, PYTHONWARNINGS) and "XOptions" (-X) are now
        only added to the sys module once Python core is properly
        initialized.
      * _PyMain is now the well identified owner of some important strings
        like: warnings options, XOptions, and the "program name". The
        program name string is now properly freed at exit.
        pymain_free() is now responsible to free the "command" string.
      * Rename most methods in Modules/main.c to use a "pymain_" prefix to
        avoid conflits and ease debug.
      * Replace _Py_CommandLineDetails_INIT with memset(0)
      * Reorder a lot of code to fix the initialization ordering. For
        example, initializing standard streams now comes before parsing
        PYTHONWARNINGS.
      * Py_Main() now handles errors when adding warnings options and
        XOptions.
      * Add _PyMem_GetDefaultRawAllocator() private function.
      * Cleanup _PyMem_Initialize(): remove useless global constants: move
        them into _PyMem_Initialize().
      * Call _PyRuntime_Initialize() as soon as possible:
        _PyRuntime_Initialize() now returns an error message on failure.
      * Add _PyInitError structure and following macros:
      
        * _Py_INIT_OK()
        * _Py_INIT_ERR(msg)
        * _Py_INIT_USER_ERR(msg): "user" error, don't abort() in that case
        * _Py_INIT_FAILED(err)
      f7e5b56c
    • Yury Selivanov's avatar
    • Antoine Pitrou's avatar
      bpo-32025: Add time.thread_time() (#4410) · 4bd41c9b
      Antoine Pitrou yazdı
      * bpo-32025: Add time.thread_time()
      
      * Add missing #endif
      
      * Add NEWS blurb
      
      * Add docs and whatsnew
      
      * Address review comments
      
      * Review comments
      4bd41c9b
    • Dong-hee Na's avatar
    • Serhiy Storchaka's avatar