Skip to content
Permalink
Branch: master
Commits on Apr 25, 2020
Commits on Apr 24, 2020
  1. bpo-40360: Deprecate lib2to3 module in light of PEP 617 (GH-19663)

    carljm committed Apr 24, 2020
    Deprecate lib2to3 module in light of PEP 617.
    
    We anticipate removal in the 3.12 timeframe.
  2. bpo-40334: Rewrite test_c_parser to avoid memory leaks (GH-19694)

    lysnikolaou committed Apr 24, 2020
    Previously every test was building an extension module and
    loading it into sys.modules. The tearDown function was thus
    not able to clean up correctly, resulting in memory leaks.
    
    With this commit, every test function now builds the extension
    module and runs the actual test code in a new process
    (using assert_python_ok), so that sys.modules stays intact
    and no memory gets leaked.
  3. bpo-38061: subprocess uses closefrom() on FreeBSD (GH-19697)

    vstinner committed Apr 24, 2020
    Optimize the subprocess module on FreeBSD using closefrom().
    A single close(fd) syscall is cheap, but when sysconf(_SC_OPEN_MAX)
    is high, the loop calling close(fd) on each file descriptor can take
    several milliseconds.
    
    The workaround on FreeBSD to improve performance was to load and
    mount the fdescfs kernel module, but this is not enabled by default.
    
    Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans
    (kevans) and Kubilay Kocak (koobs):
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274
  4. bpo-38061: os.closerange() uses closefrom() on FreeBSD (GH-19696)

    vstinner committed Apr 24, 2020
    On FreeBSD, os.closerange(fd_low, fd_high) now calls
    closefrom(fd_low) if fd_high is greater than or equal to
    sysconf(_SC_OPEN_MAX).
    
    Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans
    (kevans) and Kubilay Kocak (koobs):
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274
  5. Expand the implementation comments (GH-19699)

    rhettinger committed Apr 24, 2020
  6. bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691)

    vstinner committed Apr 24, 2020
    If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
    "goto exit_eval_frame;" rather than "return NULL;" to exit the
    function in a consistent state. For example, tstate->frame is now
    reset properly.
  7. Use Py_ssize_t instead of ssize_t (GH-19685)

    pablogsal committed Apr 24, 2020
Commits on Apr 23, 2020
  1. Fix broken mkdir -p call in regen-pegen (#19695)

    gvanrossum committed Apr 23, 2020
    We should use `$(MKDIR_P) <directory>`, not `$(MKDIR_P) -p <directory>`.
  2. bpo-40334: Use old compiler when compile mode is func_type (GH-19692)

    gvanrossum committed Apr 23, 2020
    This is invoked by mypy, using ast.parse(source, "<func_type>", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash.
    
    https://bugs.python.org/issue40334
  3. bpo-40336: Refactor typing._SpecialForm (GH-19620)

    serhiy-storchaka committed Apr 23, 2020
  4. bpo-39983: Add test.support.print_warning() (GH-19683)

    vstinner committed Apr 23, 2020
    Log "Warning -- ..." test warnings into sys.__stderr__ rather than
    sys.stderr, to ensure to display them even if sys.stderr is captured.
    
    test.libregrtest.utils.print_warning() now calls
    test.support.print_warning().
  5. bpo-40334: Improve various PEG-Parser related stuff (GH-19669)

    lysnikolaou committed Apr 23, 2020
    The changes in this commit are all related to @vstinner's original review comments of the initial PEP 617 implementation PR.
  6. bpo-40370: Use the same compile and link args as the interpreter used…

    pablogsal committed Apr 23, 2020
    … in test_peg_generator (GH-19674)
  7. gdbinit: Use proper define syntax (GH-19557)

    The-Compiler committed Apr 23, 2020
    Using `def` rather than `define` results in:
    
        Ambiguous command "def pu": define, define-prefix.
    
    Automerge-Triggered-By: @csabella
  8. bpo-40334: Suppress all output in test_peg_generator (GH-19675)

    lysnikolaou committed Apr 23, 2020
  9. bpo-40334: Fix build errors and warnings in test_peg_generator (GH-19672

    pablogsal committed Apr 23, 2020
    )
  10. bpo-40334: Don't downcast from Py_ssize_t to int (GH-19671)

    pablogsal committed Apr 23, 2020
  11. Compile extensions in test_peg_generator with C99 (GH-19668)

    pablogsal committed Apr 23, 2020
  12. bpo-40334: Rename PyConfig.use_peg to _use_peg_parser (GH-19670)

    vstinner committed Apr 23, 2020
    * Rename PyConfig.use_peg to _use_peg_parser
    * Document PyConfig._use_peg_parser and mark it a deprecated
    * Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated
      in the documentation.
    * Add use_old_parser() and skip_if_new_parser() to test.support
    * Remove sys.flags.use_peg: use_old_parser() uses
      _testinternalcapi.get_configs() instead.
    * Enhance test_embed tests
    * subprocess._args_from_interpreter_flags() copies -X oldparser
  13. bpo-40334: Fix builds outside the source directory and regenerate aut…

    pablogsal committed Apr 23, 2020
    …oconf files (GH-19667)
Commits on Apr 22, 2020
  1. Add @pablogsal as code owner for pegen-related files (GH-19665)

    pablogsal committed Apr 22, 2020
  2. PEP 617: Only run the CI with the new parser (GH-19664)

    pablogsal committed Apr 22, 2020
  3. bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503)

    3 people committed Apr 22, 2020
    Co-authored-by: Guido van Rossum <guido@python.org>
    Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
  4. bpo-39939: Add str.removeprefix and str.removesuffix (GH-18939)

    sweeneyde committed Apr 22, 2020
    Added str.removeprefix and str.removesuffix methods and corresponding
    bytes, bytearray, and collections.UserString methods to remove affixes
    from a string if present. See PEP 616 for a full description.
  5. bpo-40260: Remove unnecessary newline in compile() call (GH-19641)

    asottile committed Apr 22, 2020
    Because some people subclass this class and call undocumented methods, and we don't want to break them.
  6. bpo-39562: Prevent collision of future and compiler flags (GH-19230)

    isidentical committed Apr 22, 2020
    The constant values of future flags in the __future__ module
    is updated in order to prevent collision with compiler flags.
    Previously PyCF_ALLOW_TOP_LEVEL_AWAIT was clashing
    with CO_FUTURE_DIVISION.
  7. bpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652)

    zooba committed Apr 22, 2020
  8. bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19637)

    vstinner committed Apr 22, 2020
    Fix the Windows implementation of os.waitpid() for exit code
    larger than "INT_MAX >> 8". The exit status is now interpreted as an
    unsigned number.
    
    os.waitstatus_to_exitcode() now accepts wait status larger than
    INT_MAX.
  9. bpo-38329: python.org macOS installers now update Current symlink (GH…

    ned-deily committed Apr 22, 2020
    …-19650)
    
    Previously, python.org macOS installers did not alter the Current version
    symlink in /Library/Frameworks/Python.framework/Versions when installing
    a version of Python 3.x, only when installing 2.x.  Now that Python 2 is
    retired, it's time to change that.  This should make it a bit easier
    to embed Python 3 into other macOS applications.
  10. bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)

    jmroot committed Apr 22, 2020
    It is possible to use either '-isysroot /some/path' (with a space) or
    '-isysroot/some/path' (no space in between). Support both forms in
    places where special handling of -isysroot is done, rather than just
    the first form.
    Co-authored-by: Ned Deily <nad@python.org>
Older
You can’t perform that action at this time.