Skip to content
Permalink
Branch: master
Commits on Jun 12, 2020
  1. Minor change on threading.Thread.native_id documentation. (GH-18129)

    awecx committed Jun 12, 2020
    Remove duplication in `threading.Thread.native_id` documentation, so resulting documentation is more consistent with the `threading.Thread.ident`.
    
    Issue initially raised [here](python/python-docs-fr#1122 (comment)) (in French). 
    
    No issue associated to this PR.
    
    Automerge-Triggered-By: @csabella
  2. bpo-40164: Update Windows OpenSSL to 1.1.1g (GH-20834)

    srinivasreddy committed Jun 12, 2020
  3. bpo-40964: disable remote IMAP tests (GH-20836)

    tiran committed Jun 12, 2020
    Remote host cyrus.andrew.cmu.edu is blocking incoming connections and is
    causing test suite to fail.
    
    Signed-off-by: Christian Heimes <christian@python.org>
  4. bpo-40890: Add `mapping` property to dict views (GH-20749)

    sweeneyde committed Jun 12, 2020
  5. bpo-40955: Fix memory leak in subprocess module (GH-20825)

    tiran committed Jun 12, 2020
    ```
    Direct leak of 8 byte(s) in 1 object(s) allocated from:
        #0 0x7f008bf19667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
        #1 0x7f007a0bee4a in subprocess_fork_exec /home/heimes/dev/python/cpython/Modules/_posixsubprocess.c:774
        #2 0xe0305b in cfunction_call Objects/methodobject.c:546
    ```
    
    Signed-off-by: Christian Heimes <christian@python.org>
  6. Update lexical_analysis.rst (GH-17508)

    maggyero committed Jun 12, 2020
    Use Sphinx role markup for `str.format`.
    
    Automerge-Triggered-By: @csabella
  7. bpo-40950: Port nis module to multiphase initialization (GH-20811)

    corona10 committed Jun 12, 2020
  8. bpo-40939: Clean and adapt the peg_generator directory after deleting…

    pablogsal committed Jun 12, 2020
    … the old parser (GH-20822)
Commits on Jun 11, 2020
  1. bpo-40626: Support HDF5 in mimetypes (GH-20042)

    schwabm committed Jun 11, 2020
    Add hdf5 with .h5 file extension
    
    See 'Recommendations' section for mime types from the HDF group:  https://www.hdfgroup.org/2018/06/citations-for-hdf-data-and-software/
    
    Patch by Mark Schwab.
  2. bpo-29620: iterate over a copy of sys.modules (GH-4800)

    kernc committed Jun 11, 2020
    unittest.TestCase.assertWarns no longer raises a RuntimeException
    when accessing a module's ``__warningregistry__`` causes importation of a new
    module, or when a new module is imported in another thread. 
    
    Patch by Kernc.
  3. bpo-40939: Remove some extra references to PYTHONOLDPARSER (GH-20815)

    pablogsal committed Jun 11, 2020
    Automerge-Triggered-By: @pablogsal
  4. bpo-40939: Remove the old parser (GH-20768)

    pablogsal committed Jun 11, 2020
    This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.
  5. bpo-40275: Move TransientResource to test_urllib2net (GH-20812)

    vstinner committed Jun 11, 2020
    Move TransientResource, time_out, socket_peer_reset and
    ioerror_peer_reset from test.support to test_urllib2net.
    
    Remove "import errno" from test.support.
  6. bpo-40939: Remove PEG parser easter egg (__new_parser__) (#20802)

    lysnikolaou committed Jun 11, 2020
    It no longer serves a purpose (there's only one parser) and having "new" in any name will eventually look odd. Also, it impinges on a potential sub-namespace, `__new_...__`.
  7. bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)

    vstinner and manisandro committed Jun 11, 2020
    Followup of bpo-40854, there is one remaining usage of PLATLIBDIR
    which should be replaced by config->platlibdir.
    
    test_sys checks that sys.platlibdir attribute exists and is a string.
    
    Update Makefile: getpath.c and sysmodule.c no longer need PLATLIBDIR
    macro, PyConfig.platlibdir member is used instead.
    
    Co-authored-by: Sandro Mani <manisandro@gmail.com>
  8. bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)

    vstinner and michael-o committed Jun 11, 2020
    The GDB provided by HPE on HP-UX contains a modified version string. Therefore
    the tests fail. Adapt the regex to match that string.
    
    Patch by Michael Osipov.
    
    Co-Authored-by: Michael Osipov <michael.osipov@siemens.com>
  9. bpo-40939: Generate keyword.py using the new parser (GH-20800)

    lysnikolaou committed Jun 11, 2020
  10. bpo-40925: Remove unused stack macro SET_VALUE (GH-20783)

    corona10 committed Jun 11, 2020
Commits on Jun 10, 2020
  1. bpo-40847: Consider a line with only a LINECONT a blank line (GH-20769)

    lysnikolaou and pablogsal committed Jun 10, 2020
    A line with only a line continuation character should be considered
    a blank line at tokenizer level so that only a single NEWLINE token
    gets emitted. The old parser was working around the issue, but the
    new parser threw a `SyntaxError` for valid input. For example,
    an empty line following a line continuation character was interpreted
    as a `SyntaxError`.
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
  2. Restrict co_code to be under INT_MAX in codeobject (GH-20628)

    ammaraskar committed Jun 10, 2020
  3. bpo-40895: Update weakref documentation to remove old warnings (GH-20687

    asqui committed Jun 10, 2020
    )
    
    The doccumentation at https://docs.python.org/3.10/library/weakref.html cautions that the `WeakKeyDictionary` and `WeakValueDictionary` are susceptible to the problem of dictionary mutation during iteration.
    
    These notes present the user with a problem that has no easy solution.
    
    I dug into the implementation and found that fortunately, Antoine Pitrou already addressed this challenge (10 years ago!) by introducing an `_IterationGuard` context manager to the implementation, which delays mutation while an iteration is in progress.
    
    I asked for confirmation and @pitrou agreed that these notes could be removed:
    c1baa60#commitcomment-39514438
  4. bpo-39465: Use _PyInterpreterState_GET() (GH-20788)

    vstinner committed Jun 10, 2020
    Replace _PyThreadState_GET() with _PyInterpreterState_GET() in:
    
    * get_small_int()
    * gcmodule.c: add also get_gc_state() function
    * _PyTrash_deposit_object()
    * _PyTrash_destroy_chain()
    * warnings_get_state()
    * Py_GetRecursionLimit()
    
    Cleanup listnode.c: add 'parser' variable.
  5. bpo-40927: Fix test_binhex when run twice (GH-20764)

    vstinner committed Jun 10, 2020
    test_binhex now uses import_fresh_module() to ensure that it raises
    DeprecationWarning each time.
  6. _PyPreConfig_Read() decodes argv at each iteration (GH-20786)

    vstinner committed Jun 10, 2020
    _PyPreConfig_Read() now calls _PyPreCmdline_SetArgv() at each
    iteration, so bytes strings are decoded from the new encoding.
  7. bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779)

    vstinner committed Jun 10, 2020
    test_repl.test_close_stdin() now calls
    support.suppress_msvcrt_asserts() to fix the test on Windows.
    
    * Move suppress_msvcrt_asserts() from test.libregrtest.setup to
      test.support. Make its verbose parameter optional: verbose=False by
      default.
    * Add msvcrt.GetErrorMode().
    * SuppressCrashReport now uses GetErrorMode() and SetErrorMode() of
      the msvcrt module, rather than using ctypes.
    * Remove also an unused variable (deadline) in wait_process().
  8. bpo-40943: Replace PY_FORMAT_SIZE_T with "z" (GH-20781)

    vstinner committed Jun 10, 2020
    The PEP 353, written in 2005, introduced PY_FORMAT_SIZE_T. Python no
    longer supports macOS 10.4 and Visual Studio 2010, but requires more
    recent macOS and Visual Studio versions. In 2020 with Python 3.10, it
    is now safe to use directly "%zu" to format size_t and "%zi" to
    format Py_ssize_t.
  9. bpo-40703: Let PyType_FromSpec() set "type.__module__" only if it is …

    scoder committed Jun 10, 2020
    …not set yet. (GH-20273)
  10. bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree modul…

    serhiy-storchaka committed Jun 10, 2020
    …e." (GH-20117)
    
    * Revert "bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)"
    
    This reverts commit b33e525.
Older
You can’t perform that action at this time.