1. 20 May, 2019 3 commits
  2. 19 May, 2019 11 commits
  3. 18 May, 2019 9 commits
  4. 17 May, 2019 17 commits
    • David Carlier's avatar
      Fix couple of dead code paths (GH-7418) · 27ee0f85
      David Carlier authored
      27ee0f85
    • Toshio Kuratomi's avatar
      e7b1136e
    • Géry Ogam's avatar
      51a860ee
    • Victor Stinner's avatar
      bpo-36763: _Py_InitializeFromArgs() argc becomes Py_ssize_t (GH-13396) · b5947842
      Victor Stinner authored
      * The type of initlization function 'argc' parameters becomes
        Py_ssize_t, instead of int.
      * Change _PyPreConfig_Copy() return type to void, instead of int.
        The function cannot fail anymore.
      * Fix compilation warnings on Windows.
      b5947842
    • Pedro Lacerda's avatar
    • Victor Stinner's avatar
      bpo-36763: Add _PyInitError functions (GH-13395) · 871ff77c
      Victor Stinner authored
      * Add _PyInitError functions:
      
        * _PyInitError_Ok()
        * _PyInitError_Error()
        * _PyInitError_NoMemory()
        * _PyInitError_Exit()
        * _PyInitError_IsError()
        * _PyInitError_IsExit()
        * _PyInitError_Failed()
      
      * frozenmain.c and _testembed.c now use functions rather than macros.
      * Move _Py_INIT_xxx() macros to the internal API.
      * Move _PyWstrList_INIT macro to the internal API.
      871ff77c
    • Victor Stinner's avatar
      bpo-36763: _Py_RunMain() doesn't call Py_Exit() anymore (GH-13390) · 12083284
      Victor Stinner authored
      Py_Main() and _Py_RunMain() now return the exitcode rather than
      calling Py_Exit(exitcode) when calling PyErr_Print() if the current
      exception type is SystemExit.
      
      * Add _Py_HandleSystemExit().
      * Add pymain_exit_err_print().
      * Add pymain_exit_print().
      12083284
    • Victor Stinner's avatar
      bpo-36945: Add _PyPreConfig.configure_locale (GH-13368) · bcfbbd70
      Victor Stinner authored
      _PyPreConfig_InitIsolatedConfig() sets configure_locale to 0 to
      prevent Python to modify the LC_CTYPE locale. In that case,
      coerce_c_locale an coerce_c_locale_warn are set to 0 as well.
      bcfbbd70
    • Edison A's avatar
      bpo-36782: Created C API wrappers and added missing tests for functions in the... · 98ff4d5f
      Edison A authored
      bpo-36782: Created C API wrappers and added missing tests for functions in the PyDateTimeAPI. (#13088)
      
      * created a c API wrapper for pyDate_FromDate and added the test
      
      * 📜🤖 Added by blurb_it.
      
      * fixed auto-alignment by vscode
      
      * made changes as per PEP7
      
      * Update 2019-05-04-21-25-19.bpo-36782.h3oPIb.rst
      
      * Refactored code as per requested changes
      
      * Remove Whitespace to Fix failed travis build
      
      * Update 2019-05-04-21-25-19.bpo-36782.h3oPIb.rst
      
      * Add a new line at end of ACKS
      
      * Added C API function for PyDateTime_FromDateAndTime
      
      * Added a test for the C API wrapper of PyDateTime_FromDateAndTime
      
      * Added C API function for PyDateTime_FromDateAndTime
      
      * Added a test for the C API wrapper of PyDateTime_FromDateAndTimeAndFold
      
      * Remove Whitespace using patchcheck
      
      * Added a C API function for PyTime_FromTime
      
      * Added a test for the C API wrapper of PyTime_FromTime
      
      * Added a C API function for PyTime_FromTimeAndFold
      
      * Added a test for the C API wrapper of PyTime_FromTimeAndFold
      
      * Added a C API function for PyDelta_FromDSU
      
      * Added a test for the C API wrapper of PyDelta_FromDSU
      
      * Refactor code, re-edit lines longer than 80 chars
      
      * Fix Whitespace issues in DatetimeTester
      
      * List all tests that were added in this PR
      
      * Update 2019-05-04-21-25-19.bpo-36782.h3oPIb.rst
      
      * Reformat code as per PEP7 guidelines
      
      * Remove unused varibles from another function
      
      * Added specific tests for the Fold Attribute
      
      * Update 2019-05-04-21-25-19.bpo-36782.h3oPIb.rst
      
      * Reformat code according to requested changes
      
      * Reformat code to PEP7 Guidelines
      
      * Reformat code to PEP7 Guidelines
      
      * Re-add name to blurb
      
      * Added a backtick to blurb file
      
      * Update 2019-05-04-21-25-19.bpo-36782.h3oPIb.rst
      
      * Remove the need to initialize mandatory parameters
      
      * Make the macro parameter mandatory
      
      * Re-arrange the order of unit-test args
      
      * Removed the need to initialize macro
      
      change all the int macro = 0 to int macro; now that macro is required
      Co-Authored-By: default avatarPaul Ganssle <pganssle@users.noreply.github.com>
      
      * Removed the need to initialize macro
      
      change all the `int macro = 0` to `int macro`; now that macro is required
      Co-Authored-By: default avatarPaul Ganssle <pganssle@users.noreply.github.com>
      
      * Removed the need to initialize macro
      
      change all the `int macro = 0` to `int macro`; now that macro is required
      Co-Authored-By: default avatarPaul Ganssle <pganssle@users.noreply.github.com>
      
      * Removed the need to initialize macro
      
      change all the `int macro = 0` to `int macro`; now that macro is required
      Co-Authored-By: default avatarPaul Ganssle <pganssle@users.noreply.github.com>
      
      * Removed the need to initialize macro
      
      change all the `int macro = 0` to `int macro`; now that macro is required
      Co-Authored-By: default avatarPaul Ganssle <pganssle@users.noreply.github.com>
      
      * Removed the need to initialize macro
      
      change all the `int macro = 0` to `int macro`; now that macro is required
      Co-Authored-By: default avatarPaul Ganssle <pganssle@users.noreply.github.com>
      98ff4d5f
    • Abhilash Raj's avatar
      bpo-33524: Fix the folding of email header when max_line_length is 0 or None (#13391) · feac6cd7
      Abhilash Raj authored
      and there are non-ascii characters in the header.
      feac6cd7
    • Pierre Glaser's avatar
      bpo-36867: _test_multiprocessing: avoid weak sync primitive (GH-13292) · cbe72d84
      Pierre Glaser authored
      Avoid weak sync primitive in multiprocessing resource_tracker test.
      cbe72d84
    • Paul Monson's avatar
    • Paul Monson's avatar
    • Victor Stinner's avatar
      bpo-36763: Add _PyCoreConfig_InitPythonConfig() (GH-13388) · cab5d074
      Victor Stinner authored
      Add new functions to get the Python interpreter behavior:
      
      * _PyPreConfig_InitPythonConfig()
      * _PyCoreConfig_InitPythonConfig()
      
      Add new functions to get an isolated configuration:
      
      * _PyPreConfig_InitIsolatedConfig()
      * _PyCoreConfig_InitIsolatedConfig()
      
      Replace _PyPreConfig_INIT and _PyCoreConfig_INIT with new functions
      _PyPreConfig_Init() and _PyCoreConfig_Init().
      
      _PyCoreConfig: set configure_c_stdio and parse_argv to 0 by default
      to behave as Python 3.6 in the default configuration.
      
      _PyCoreConfig_Read() no longer sets coerce_c_locale_warn to 1 if it's
      equal to 0. coerce_c_locale_warn must now be set to -1 (ex: using
      _PyCoreConfig_InitPythonConfig()) to enable C locale coercion
      warning.
      
      Add unit tests for _PyCoreConfig_InitPythonConfig()
      and _PyCoreConfig_InitIsolatedConfig().
      
      Changes:
      
      * Rename _PyCoreConfig_GetCoreConfig() to _PyPreConfig_GetCoreConfig()
      * Fix core_read_precmdline(): handle parse_argv=0
      * Fix _Py_PreInitializeFromCoreConfig(): pass coreconfig.argv
        to _Py_PreInitializeFromPyArgv(), except if parse_argv=0
      cab5d074
    • Victor Stinner's avatar
      bpo-36763: Add PyMemAllocatorName (GH-13387) · b16b4e45
      Victor Stinner authored
      * Add PyMemAllocatorName enum
      * _PyPreConfig.allocator type becomes PyMemAllocatorName, instead of
        char*
      * Remove _PyPreConfig_Clear()
      * Add _PyMem_GetAllocatorName()
      * Rename _PyMem_GetAllocatorsName() to
        _PyMem_GetCurrentAllocatorName()
      * Remove _PyPreConfig_SetAllocator(): just call
        _PyMem_SetupAllocators() directly, we don't have do reallocate the
        configuration with the new allocator anymore!
      * _PyPreConfig_Write() parameter becomes const, as it should be in
        the first place!
      b16b4e45
    • Christian Heimes's avatar
      Simplify SSLSocket / SSLObject doc string (GH-9972) · 80ed3533
      Christian Heimes authored
      Instead of maintaining the same doc string two times, let's copy common
      doc strings from SSLObject methods and properties to SSLSocket.
      Signed-off-by: default avatarChristian Heimes <christian@python.org>
      80ed3533
    • redshiftzero's avatar