Skip to content
Permalink
main
Switch branches/tags

Commits on Jun 15, 2022

  1. gh-84461: Document how to install SDKs manually (GH-93844)

    Co-authored-by: Brett Cannon <brett@python.org>
    tiran and brettcannon committed Jun 15, 2022
  2. Tests call sleeping_retry() with SHORT_TIMEOUT (#93870)

    Tests now call busy_retry() and sleeping_retry() with SHORT_TIMEOUT
    or LONG_TIMEOUT (of test.support), rather than hardcoded constants.
    
    Add also WAIT_ACTIVE_CHILDREN_TIMEOUT constant to
    _test_multiprocessing.
    vstinner committed Jun 15, 2022
  3. test_asyncore: Optimize capture_server() (#93867)

    Remove time.sleep(0.01) in test_asyncore capture_server(). The sleep
    was redundant and inefficient, since the loop starts with
    select.select() which also implements a sleep (poll for socket data
    with a timeout).
    vstinner committed Jun 15, 2022
  4. test_asyncio: run_until() implements exponential sleep (#93866)

    run_until() of test.test_asyncio.utils now uses an exponential sleep
    delay (max: 1 second), rather than a fixed delay of 1 ms. Similar
    design than support.sleeping_retry() wait strategy that applies
    exponential backoff.
    vstinner committed Jun 15, 2022
  5. gh-93857: Fix broken audit-event targets in sqlite3 docs (#93859)

    Corrected targets for the following audit-events:
    
    - sqlite3.enable_load_extension => sqlite3.Connection.enable_load_extension
    - sqlite3.load_extension => sqlite3.Connection.load_extension
    erlend-aasland committed Jun 15, 2022
  6. Use support.sleeping_retry() and support.busy_retry() (#93848)

    * Replace time.sleep(0.010) with sleeping_retry() to
      use an exponential sleep.
    * support.wait_process(): reuse sleeping_retry().
    * _test_eintr: remove unused variables.
    vstinner committed Jun 15, 2022
  7. test_thread uses support.sleeping_retry() (#93849)

    test_thread.test_count() now fails if it takes longer than
    LONG_TIMEOUT seconds.
    vstinner committed Jun 15, 2022
  8. gh-87260: Update sqlite3 signature docs to reflect actual implementat…

    …ion (#93840)
    
    Align the docs for the following methods with the actual implementation:
    
    - sqlite3.complete_statement()
    - sqlite3.Connection.create_function()
    - sqlite3.Connection.create_aggregate()
    - sqlite3.Connection.set_progress_handler()
    erlend-aasland committed Jun 15, 2022
  9. Add test.support.busy_retry() (#93770)

    Add busy_retry() and sleeping_retry() functions to test.support.
    vstinner committed Jun 15, 2022
  10. gh-93829: In sqlite3, replace Py_BuildValue with faster APIs (#93830)

    - In Modules/_sqlite/connection.c, use PyLong_FromLong
    - In Modules/_sqlite/microprotocols.c, use PyTuple_Pack
    erlend-aasland committed Jun 15, 2022
  11. gh-93183: Adjust wording in socket docs (#93832)

    package => packet
    
    Co-authored-by: Victor Norman
    erlend-aasland committed Jun 15, 2022

Commits on Jun 14, 2022

  1. gh-93814: Add infinite test for itertools.chain.from_iterable (GH-93815)

    fix #93814
    
    Automerge-Triggered-By: GH:rhettinger
    youknowone committed Jun 14, 2022
  2. gh-91877: Fix WriteTransport.get_write_buffer_{limits,size} docs (#92338

    )
    
    - Amend docs for WriteTransport.get_write_buffer_limits
    - Add docs for WriteTransport.get_write_buffer_size
    TechieBoy committed Jun 14, 2022
  3. gh-79579: Improve DML query detection in sqlite3 (#93623)

    The fix involves using pysqlite_check_remaining_sql(), not only to check
    for multiple statements, but now also to strip leading comments and
    whitespace from SQL statements, so we can improve DML query detection.
    
    pysqlite_check_remaining_sql() is renamed lstrip_sql(), to more
    accurately reflect its function, and hardened to handle more SQL comment
    corner cases.
    erlend-aasland committed Jun 14, 2022
  4. gh-93353: regrtest checks for leaked temporary files (#93776)

    When running tests with -jN, create a temporary directory per process
    and mark a test as "environment changed" if a test leaks a temporary
    file or directory.
    vstinner committed Jun 14, 2022
  5. gh-91321: Fix compatibility with C++ older than C++11 (#93784)

    Fix the compatibility of the Python C API with C++ older than C++11.
    
    _Py_NULL is only defined as nullptr on C++11 and newer.
    vstinner committed Jun 14, 2022
  6. gh-89546: Clean up PyType_FromMetaclass (GH-93686)

    When changing PyType_FromMetaclass recently (GH-93012, GH-93466, GH-28748)
    I found a bunch of opportunities to improve the code. Here they are.
    
    Fixes: #89546
    
    Automerge-Triggered-By: GH:encukou
    encukou committed Jun 14, 2022
  7. gh-91810: Fix regression with writing an XML declaration with encodin…

    …g='unicode' (GH-93426)
    
    Suppress writing an XML declaration in open files in ElementTree.write()
    with encoding='unicode' and xml_declaration=None.
    
    If file patch is passed to ElementTree.write() with encoding='unicode',
    always open a new file in UTF-8.
    serhiy-storchaka committed Jun 14, 2022
Older