Skip to content
Permalink
Branch: master
Commits on May 1, 2020
  1. bpo-39435: Fix docs for pickle.loads (GH-18160)

    hauntsaninja committed May 1, 2020
  2. bpo-40412: Nullify inittab_copy during finalization (GH-19746)

    indygreg committed May 1, 2020
    Otherwise we leave a dangling pointer to free'd memory. If we
    then initialize a new interpreter in the same process and call
    PyImport_ExtendInittab, we will (likely) crash when calling
    PyMem_RawRealloc(inittab_copy, ...) since the pointer address
    is bogus.
    
    Automerge-Triggered-By: @brettcannon
  3. bpo-40334: Make the PyPegen* and PyParser* APIs more consistent (GH-1…

    lysnikolaou committed May 1, 2020
    …9839)
    
    This commit makes both APIs more consistent by doing the following:
    - Remove the `PyPegen_CodeObjectFrom*` functions, which weren't used 
      and will probably not be needed. Functions like `Py_CompileStringObject`
      can be used instead.
    - Include a `const char *filename` parameter in `PyPegen_ASTFromString`.
    - Rename `PyPegen_ASTFromFile` to `PyPegen_ASTFromFilename`, because
      its signature is not the same with `PyParser_ASTFromFile`.
  4. Ensure that tok->type_comments is set on every path (GH-19828)

    gvanrossum committed May 1, 2020
  5. bpo-40334: Correct return value of func_type_comment (GH-19833)

    pablogsal committed May 1, 2020
  6. bpo-40334: unskip test_function_type in test_unparse with the new par…

    pablogsal committed May 1, 2020
    …ser (GH-19837)
  7. bpo-40462: fix variable and function names (GH-19832)

    furkanonder committed May 1, 2020
    Automerge-Triggered-By: @vstinner
  8. bpo-32494: Use gdbm_count for dbm_length if possible (GH-19814)

    corona10 committed May 1, 2020
  9. bpo-40453: Add PyConfig._isolated_subinterpreter (GH-19820)

    vstinner committed May 1, 2020
    An isolated subinterpreter cannot spawn threads, spawn a child
    process or call os.fork().
    
    * Add private _Py_NewInterpreter(isolated_subinterpreter) function.
    * Add isolated=True keyword-only parameter to
      _xxsubinterpreters.create().
    * Allow again os.fork() in "non-isolated" subinterpreters.
  10. bpo-40334: Add support for feature_version in new PEG parser (GH-19827)

    lysnikolaou committed May 1, 2020
    `ast.parse` and `compile` support a `feature_version` parameter that
    tells the parser to parse the input string, as if it were written in
    an older Python version.
    The `feature_version` is propagated to the tokenizer, which uses it
    to handle the three different stages of support for `async` and
    `await`. Additionally, it disallows the following at parser level:
    - The '@' operator in < 3.5
    - Async functions in < 3.5
    - Async comprehensions in < 3.6
    - Underscores in numeric literals in < 3.6
    - Await expression in < 3.5
    - Variable annotations in < 3.6
    - Async for-loops in < 3.5
    - Async with-statements in < 3.5
    - F-strings in < 3.6
    
    Closes we-like-parsers#124.
  11. bpo-40443: Remove unused imports in stdlib (GH-19815)

    vstinner committed May 1, 2020
  12. bpo-40275: Fix name error in support.socket_helper (GH-19825)

    vstinner committed May 1, 2020
    Replace TestFailed with support.TestFailed.
    
    Bug spotted by pyflakes.
  13. Remove dead code in test__xxsubinterpreters (GH-19826)

    vstinner committed May 1, 2020
Commits on Apr 30, 2020
  1. bpo-1635741: Fix compiler warning in _stat.c (GH-19822)

    vstinner committed Apr 30, 2020
    Cast Py_ARRAY_LENGTH() size_t to int explicitly.
  2. Revert "bpo-29587: Enable implicit exception chaining with gen.throw() (

    vstinner committed Apr 30, 2020
    GH-19811)" (#19821)
    
    This reverts commit 2514a63.
  3. bpo-29587: Enable implicit exception chaining with gen.throw() (GH-19811

    cjerdonek committed Apr 30, 2020
    )
    
    Before this commit, if an exception was active inside a generator
    when calling gen.throw(), then that exception was lost (i.e. there
    was no implicit exception chaining).  This commit fixes that.
  4. bpo-40334: Support type comments (GH-19780)

    gvanrossum committed Apr 30, 2020
    This implements full support for # type: <type> comments, # type: ignore <stuff> comments, and the func_type parsing mode for ast.parse() and compile().
    
    Closes we-like-parsers#95.
    
    (For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)
    
    The only thing missing is `feature_version=N`, which is being tracked in we-like-parsers#124.
  5. compileall: Fix typos in docstring (GH-19810)

    JelleZijlstra committed Apr 30, 2020
  6. bpo-40443: Remove unused imports in distutils (GH-19802)

    vstinner committed Apr 30, 2020
  7. bpo-40443: Remove unused imports in the stdlib (GH-19803)

    vstinner committed Apr 30, 2020
  8. bpo-40394 - difflib.SequenceMatched.find_longest_match default args (G…

    lrjball committed Apr 30, 2020
    …H-19742)
    
    * bpo-40394 - difflib.SequenceMatched.find_longest_match default args
    
    Added default args to find_longest_match, as well as related tests.
  9. bpo-40443: Remove unused imports in idlelib (GH-19801)

    vstinner committed Apr 30, 2020
  10. bpo-40389: Improve repr of typing.Optional (#19714)

    Endilll committed Apr 30, 2020
  11. bpo-40443: Remove unused imports in tests (GH-19804)

    vstinner committed Apr 30, 2020
Commits on Apr 29, 2020
  1. bpo-40443: Remove unused imports in tests (GH-19805)

    vstinner committed Apr 29, 2020
  2. bpo-40334: Fix test_peg_parser to actually use the old parser (GH-19778)

    lysnikolaou committed Apr 29, 2020
    Now that the default parser is the new PEG parser, ast.parse uses it, which means that we don't actually test something in test_peg_parser. This commit introduces a new keyword argument (`oldparser`) for `_peg_parser.parse_string` for specifying that a string needs to be parsed with the old parser. This keyword argument is used in the tests to actually compare the ASTs the new parser generates with those generated by the old parser.
  3. bpo-40291: Add support for CAN_J1939 sockets (GH-19538)

    karlding committed Apr 29, 2020
    Add support for CAN_J1939 sockets that wrap SAE J1939 protocol
    functionality provided by Linux 5.4+ kernels.
Older
You can’t perform that action at this time.