Visitar URL original
Commits · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20200429162529/https://github.com/python/cpython/commits/master
Skip to content
Permalink
Branch: master
Commits on Apr 29, 2020
  1. bpo-9216: Expose OpenSSL FIPS_mode() as _hashlib.get_fips_mode() (GH-…

    vstinner and encukou committed Apr 29, 2020
    …19703)
    
    test.pythoninfo logs OpenSSL FIPS_mode() and Linux
    /proc/sys/crypto/fips_enabled in a new "fips" section.
    
    Co-Authored-By: Petr Viktorin <encukou@gmail.com>
  2. What's New in Python 3.9: Reorganize C API Changes (GH-19794)

    vstinner committed Apr 29, 2020
    Move Build Changes and C API Changes to the end of the document.
    Most Python users don't build Python themselves and don't use the C
    API. Other changes:
    
    * Add Build Changes section
    * Add sub-sections to the C API Changes
    * Sort modules in Improved Modules section: move nntplib after
      multiprocessing
  3. bpo-40228: More robust frame.setlineno. (GH-19437)

    markshannon committed Apr 29, 2020
    More robust frame.setlineno. Makes no assumptions about source->bytecode translation.
  4. bpo-40436: Fix code parsing gdb version (GH-19792)

    vstinner committed Apr 29, 2020
    test_gdb and test.pythoninfo now check gdb command exit code.
  5. bpo-40428: Cleanup free list part of C API Changes doc (GH-19793)

    vstinner committed Apr 29, 2020
  6. Add missing sys import to socket_helper.py (GH-19791)

    pablogsal committed Apr 29, 2020
  7. bpo-40334: refactor and cleanup for the PEG generators (GH-19775)

    pablogsal committed Apr 29, 2020
  8. bpo-40432 Fix MSBuild project for Pegen grammars (#GH-9785)

    tonybaloney committed Apr 29, 2020
    * Update the source path of the pegen target within the Windows regen project.
    Change the path to Windows path formats.
    
    * Use the more reliable SetEnv task for Cpp Projects in MSBuild.
  9. bpo-40428: Remove references to Py*_ClearFreeList in the docs (GH-19783)

    ZackerySpytz committed Apr 29, 2020
    They were removed from the C API in commit
    ae00a5a.
  10. bpo-40334: Disallow invalid single statements in the new parser (GH-1…

    lysnikolaou and pablogsal committed Apr 29, 2020
    …9774)
    
    After parsing is done in single statement mode, the tokenizer buffer has to be checked for additional lines and a `SyntaxError` must be raised, in case there are any.
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
  11. bpo-39995: Fix concurrent.futures _ThreadWakeup (GH-19760)

    vstinner committed Apr 29, 2020
    Fix a race condition in concurrent.futures._ThreadWakeup: access to
    _ThreadWakeup is now protected with the shutdown lock.
  12. bpo-40421: Add PyFrame_GetBack() function (GH-19765)

    vstinner committed Apr 29, 2020
    New PyFrame_GetBack() function: get the frame next outer frame.
    
    Replace frame->f_back with PyFrame_GetBack(frame) in most code but
    frameobject.c, ceval.c and genobject.c.
  13. bpo-40275: Move requires_hashdigest() to test.support.hashlib_helper (G…

    shihai1991 committed Apr 29, 2020
    …H-19716)
    
    Add a new test.support.hashlib_helper submodule.
  14. bpo-40429: PyThreadState_GetFrame() returns a strong ref (GH-19781)

    vstinner committed Apr 29, 2020
    The PyThreadState_GetFrame() function now returns a strong reference
    to the frame.
  15. bpo-40334: Fix shifting of nested f-strings in the new parser (GH-19771)

    lysnikolaou committed Apr 29, 2020
    `JoinedStr`s and `FormattedValue also needs to be shifted, in order to correctly compute the location information of nested f-strings.
  16. bpo-40428: Remove PyTuple_ClearFreeList() function (GH-19769)

    vstinner committed Apr 29, 2020
    Remove the following function from the C API:
    
    * PyAsyncGen_ClearFreeLists()
    * PyContext_ClearFreeList()
    * PyDict_ClearFreeList()
    * PyFloat_ClearFreeList()
    * PyFrame_ClearFreeList()
    * PyList_ClearFreeList()
    * PySet_ClearFreeList()
    * PyTuple_ClearFreeList()
    
    Make these functions private, move them to the internal C API and
    change their return type to void.
    
    Call explicitly PyGC_Collect() to free all free lists.
    
    Note: PySet_ClearFreeList() did nothing.
  17. bpo-40429: Refactor super_init() (GH-19776)

    vstinner committed Apr 29, 2020
    Add super_init_without_args() sub-function. Hold a strong reference
    to the frame code object while calling super_init_without_args().
  18. bpo-38880: List interpreters associated with a channel end (GH-17323)

    LewisGaul committed Apr 29, 2020
    This PR adds the functionality requested by ericsnowcurrently/multi-core-python#52.
    
    Automerge-Triggered-By: @ericsnowcurrently
  19. bpo-40431: Fix syntax typo in turtledemo (GH-19777)

    hroncok committed Apr 29, 2020
    ***   File "/usr/lib64/python3.9/turtledemo/__main__.py", line 275
            bg="#d00" if clear == NORMAL else"#fca")
                                            ^
        SyntaxError: invalid string prefix
Commits on Apr 28, 2020
  1. bpo-32604: Add support for a "default" arg in channel_recv(). (GH-19770)

    ericsnowcurrently committed Apr 28, 2020
    This allows the caller to avoid creation of an exception when the channel is empty (just like `dict.get()` works).  `ChannelEmptyError` is still raised if no default is provided.
    
    Automerge-Triggered-By: @ericsnowcurrently
  2. bpo-40429: PyFrame_GetCode() result cannot be NULL (GH-19772)

    vstinner committed Apr 28, 2020
    Add frame_nslots() to factorize duplicate code.
  3. bpo-39966: Revert "bpo-25597: Ensure wraps' return value is used for …

    tirkarthi committed Apr 28, 2020
    …magic methods in MagicMock" (GH-19734)
    
    * Revert "bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock (#16029)"
    
    This reverts commit 72b1004.
  4. bpo-40025: Require _generate_next_value_ to be defined before members (…

    ethanonstott committed Apr 28, 2020
    …GH-19098)
    
    require `_generate_next_value_` to be defined before members
  5. bpo-40421: Add PyFrame_GetCode() function (GH-19757)

    vstinner committed Apr 28, 2020
    PyFrame_GetCode(frame): return a borrowed reference to the frame
    code.
    
    Replace frame->f_code with PyFrame_GetCode(frame) in most code,
    except in frameobject.c, genobject.c and ceval.c.
    
    Also add PyFrame_GetLineNumber() to the limited C API.
  6. bpo-40421: Add Include/cpython/code.h header file (GH-19756)

    vstinner committed Apr 28, 2020
    bpo-35134, bpo-40421: Add Include/cpython/code.h header file.
    
    code.h now defines PyCodeObject type in the limited C API. It is now
    included by Python.h.
    
    Give a name to the PyCodeObject structure: it is now called
    "struct PyCodeObject". So it becomes possible to define PyCodeObject
    as "struct PyCodeObject" in the limited C API without defining the
    structure.
  7. bpo-40421: Add pyframe.h header file (GH-19755)

    vstinner committed Apr 28, 2020
    Add a new separated pyframe.h header file of the PyFrame public C
    API: it is included by Python.h.
    
    Add PyFrame_GetLineNumber() to the limited C API.
    
    Replace "struct _frame" with "PyFrameObject" in header files.
    PyFrameObject is now defined as struct _frame by pyframe.h which is
    included early enough in Python.h.
  8. Post 3.9.0a6

    ambv committed Apr 28, 2020
  9. Merge tag 'v3.9.0a6'

    ambv committed Apr 28, 2020
  10. bpo-40334: Refactor peg_generator to receive a Tokens file when build…

    pablogsal committed Apr 28, 2020
    …ing c code (GH-19745)
  11. bpo-40334: Don't skip test_parser:test_trigget_memory_error (GH-19744)

    lysnikolaou committed Apr 28, 2020
    This test has been changed to always use the old parser, so no need for it to be skipped.
  12. bpo-40334: Catch E_EOF error, when the tokenizer returns ERRORTOKEN (G…

    lysnikolaou committed Apr 28, 2020
    …H-19743)
    
    An E_EOF error was only being caught after the parser exited before this commit. There are some cases though, where the tokenizer returns ERRORTOKEN *and* has set an E_EOF error (like when EOF directly follows a line continuation character) which weren't correctly handled before.
Commits on Apr 27, 2020
  1. Python 3.9.0a6

    ambv committed Apr 27, 2020
Older
You can’t perform that action at this time.