Skip to content
Permalink
Branch: master
Commits on Apr 28, 2020
  1. 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.
  2. 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
  3. 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.
  4. 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.
  5. 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.
  6. Post 3.9.0a6

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

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

    pablogsal committed Apr 28, 2020
    …ing c code (GH-19745)
  9. 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.
  10. 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
  2. bpo-39995: Split test_concurrent_futures.test_crash() into sub-tests (G…

    vstinner committed Apr 27, 2020
    …H-19739)
    
    Now only test_error_during_result_unpickle_in_result_handler()
    captures and ignores sys.stderr in the test process.
    
    Tools like test.bisect_cmd don't support subTest() but only
    work with the granularity of one method.
    
    Remove unused ExecutorDeadlockTest._sleep_id() method.
  3. bpo-30966: concurrent.futures.Process.shutdown() closes queue (GH-19738)

    vstinner committed Apr 27, 2020
    Process.shutdown(wait=True) of concurrent.futures now closes
    explicitly the result queue.
  4. bpo-40334: Support PyPARSE_DONT_IMPLY_DEDENT in the new parser (GH-19736

    pablogsal committed Apr 27, 2020
    )
  5. bpo-40334: Support CO_FUTURE_BARRY_AS_BDFL in the new parser (GH-19721)

    pablogsal committed Apr 27, 2020
    This commit also allows to pass flags to the new parser in all interfaces and fixes a bug in the parser generator that was causing to inline rules with actions, making them disappear.
  6. bpo-30966: Add multiprocessing.SimpleQueue.close() (GH-19735)

    vstinner committed Apr 27, 2020
    Add a new close() method to multiprocessing.SimpleQueue to explicitly
    close the queue.
    
    Automerge-Triggered-By: @pitrou
  7. bpo-40375: Implement imaplib.IMAP4.unselect (GH-19712)

    corona10 committed Apr 27, 2020
  8. bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType…

    pablogsal committed Apr 27, 2020
    …_FromSpec types (GH-19414)
  9. Add files in tests/test_peg_generator to the install target lists (GH…

    pablogsal committed Apr 27, 2020
    …-19723)
    
    Update the "Makefile.pre.in" template and the "PCbuild/lib.pyproj" with the files in "Lib/test/test/test_peg_generator" so they get correctly installed along the rest of the standard library.
  10. bpo-40348: Fix typos in the programming FAQ (GH-19729)

    ZackerySpytz committed Apr 27, 2020
  11. bpo-38387: Formally document PyDoc_STRVAR and PyDoc_STR macros (GH-16607

    bsolomon1124 committed Apr 27, 2020
    )
    
    Adds a short description of `PyDoc_STRVAR` and `PyDoc_STR` to "Useful macros" section of C-API docs.
    
    Currently, there is [one lone mention](https://docs.python.org/3/c-api/module.html?highlight=pydoc_strvar#c.PyModuleDef) in the C-API reference, despite the fact that `PyDoc_STRVAR` is ubiquitous to `Modules/`.
    
    Additionally, this properly uses `c:macro` within `Doc/c-api/module.rst` to link.
  12. bpo-40387: Improve queue join() example. (GH-19724)

    rhettinger committed Apr 27, 2020
Commits on Apr 26, 2020
  1. Fix typo in Lib/typing.py (GH-19717)

    nfishe committed Apr 26, 2020
  2. Fix typo in object.__format__ docs (GH-19504)

    hroskes committed Apr 26, 2020
Commits on Apr 25, 2020
  1. bpo-40275: Avoid importing logging in test.support (GH-19601)

    serhiy-storchaka committed Apr 25, 2020
    Import logging lazily in assertLogs() in unittest.
    Move TestHandler from test.support to logging_helper.
  2. bpo-40275: Avoid importing socket in test.support (GH-19603)

    serhiy-storchaka committed Apr 25, 2020
    * Move socket related functions from test.support to socket_helper.
    * Import socket, nntplib and urllib.error lazily in transient_internet().
    * Remove importing multiprocess.
  3. bpo-40275: Avoid importing asyncio in test.support (GH-19600)

    serhiy-storchaka committed Apr 25, 2020
    * Import asyncio lazily in unittest (only when IsolatedAsyncioTestCase is used).
    * Import asyncio.events lazily in test.support.
  4. bpo-40279: Add some error-handling to the module initialisation docs …

    caje731 committed Apr 25, 2020
    …example (GH-19705)
  5. closes bpo-40385: Remove Tools/scripts/checkpyc.py (GH-19709)

    ammaraskar committed Apr 25, 2020
    This is one of the few files that has intimate knowledge of the pyc file
    format. Since it lacks tests it tends to become outdated fairly quickly.
    At present it has been broken since the introduction of PEP 552.
Commits on Apr 24, 2020
Older
You can’t perform that action at this time.