Skip to content
Permalink
main

Commits on Apr 16, 2022

  1. gh-91595: fix the comparison of character and integer by using ord() (#…

    …91596)
    
    * fix the comparison of character and integer by using ord()
    
    * 📜🤖 Added by blurb_it.
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    sweetStreet and blurb-it[bot] committed Apr 16, 2022
  2. gh-69093: sqlite3 blob doc amendments (GH-91561)

    - document that you cannot open a blob handle in a WITHOUT ROWID table
    - document the blobopen() positional arguments in the same order as they
      appear
    - relocate sqlite3.Blob section
    erlend-aasland committed Apr 16, 2022
  3. gh-82849: revise intro to os.path.rst (GH-32232)

    * revise the first paragraph of docs for os.path
    * add a mention of `os.PathLike` protocol
    * remove warnings rendered irrelevant by :pep:`383` and :pep:`529`
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    jdevries3133 and JelleZijlstra committed Apr 16, 2022
  4. Issue templates: Remove duplicate links to security policy (#91590)

    * Remove security link from config file
    * Delete security.md
    AlexWaygood committed Apr 16, 2022
  5. Add minimal issue templates (#91569)

    * Add minimal issue templates
    * Wording tweaks
    * Apply suggestions from code review
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    * Improve words in `security` template
    * Update bug.md
    * Update crash.md
    * Add link to security vulnerability website from first page
    * Never edit on your phone
    * Apply suggestions from code review
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    * Update .github/ISSUE_TEMPLATE/config.yml
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    * Apply suggestions from code review
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    * Apply suggestions from code review
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    * There might not be a traceback if there's a crash
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    * Update .github/ISSUE_TEMPLATE/config.yml
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    * Reorder `config.yml` file
    * Fix Erlend's nits
    * version -> architecture
    * Apply suggestions from code review
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    
    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    4 people committed Apr 16, 2022

Commits on Apr 15, 2022

  1. gh-91487: Optimize asyncio UDP speed (GH-91488)

    Fix #91487
    
    When transferring a small file, e.g. 256 KiB, the speed of this PR is comparable. However, if a large file, e.g. 65536 KiB, is transferred, asyncio UDP will be over 100 times faster than the original. The speed is presumably significantly faster if a larger file is transferred, e.g. 1048576 KiB.
    
    Automerge-Triggered-By: GH:gpshead
    msoxzw committed Apr 15, 2022
  2. gh-69093: improve sqlite3.Connection.blobopen() error handling (GH-91571

    )
    
    Unless sqlite3_blob_open() returns SQLITE_MISUSE, the error code and
    message are available on the connection object. This means we have to
    handle SQLITE_MISUSE error messages explicitly.
    erlend-aasland committed Apr 15, 2022
  3. gh-69093: Expose sqlite3.Blob as a class (GH-91550)

    I noticed this was missing while writing typeshed stubs. It's
    useful to expose it for use in annotations and for exploration.
    JelleZijlstra committed Apr 15, 2022
  4. gh-79156: Add start_tls() method to streams API (#91453)

    The existing event loop `start_tls()` method is not sufficient for
    connections using the streams API. The existing StreamReader works
    because the new transport passes received data to the original protocol.
    The StreamWriter must then write data to the new transport, and the
    StreamReaderProtocol must be updated to close the new transport
    correctly.
    
    The new StreamWriter `start_tls()` updates itself and the reader
    protocol to the new SSL transport.
    
    Co-authored-by: Ian Good <icgood@gmail.com>
    arhadthedev and icgood committed Apr 15, 2022
  5. bpo-40376: slightly improved the wording for os.getgrouplist (GH-19702)

    The documentation for os.getgrouplist potentially read like it
    returned all groups a user belongs to but it potentially doesn't.
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    woodfighter and JelleZijlstra committed Apr 15, 2022
  6. gh-91520: Rewrite imghdr inlining for clarity and completeness (#91521)

    * Rewrite imghdr inlining for clarity and completeness
    
    * Move MIMEImage class back closer to the top of the file since it's the
      important thing.
    * Use a decorate to mark a given rule function and simplify the rule function
      names for clarity.
    * Copy over all the imghdr test data files into the email package's test data
      directory.  This way when imghdr is actually removed, it won't affect the
      MIMEImage guessing tests.
    * Rewrite and extend the MIMEImage tests to test for all supported
      auto-detected MIME image subtypes.
    * Remove the now redundant PyBanner048.gif data file.
    
    * See #91461 (comment)
    
    Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
    
    Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
    warsaw and arhadthedev committed Apr 15, 2022
  7. gh-69093: Support basic incremental I/O to blobs in sqlite3 (GH-30680)

    Authored-by: Aviv Palivoda <palaviv@gmail.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@innova.no>
    Co-authored-by: palaviv <palaviv@gmail.com>
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    4 people committed Apr 15, 2022

Commits on Apr 14, 2022

  1. gh-89455: Fix an uninitialized bool in exception print context. (#91466)

    Fix an uninitialized bool in exception print context.
        
    `struct exception_print_context.need_close` was uninitialized.
        
    Found by oss-fuzz in a test case running under the undefined behavior sanitizer.
        
    https://oss-fuzz.com/testcase-detail/6217746058182656
        
    ```
    Python/pythonrun.c:1241:28: runtime error: load of value 253, which is not a valid value for type 'bool'
        #0 0xbf2203 in print_chained cpython3/Python/pythonrun.c:1241:28
        #1 0xbea4bb in print_exception_cause_and_context cpython3/Python/pythonrun.c:1320:19
        #2 0xbea4bb in print_exception_recursive cpython3/Python/pythonrun.c:1470:13
        #3 0xbe9e39 in _PyErr_Display cpython3/Python/pythonrun.c:1517:9
    ```
        
    Pretty obvious what the ommission was upon code inspection.
    gpshead committed Apr 14, 2022
  2. gh-84461: Drop -sWASM, fix building tests for browser (GH-91530)

    - drop unnecessary ``=1`` suffix from Emscripten flags
    - drop unnecessary ``-sWASM`` flag for side modules
    - rename ``build_platform`` to ``build_wasm``. I introduced the target
      for WASM builds a couple of months ago.
    - fix ``--enable-test-modules`` for browser builds
    tiran committed Apr 14, 2022
  3. gh-87497: Document that urllib.request sends headers in camel case (G…

    …H-24661)
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    axel3rd and JelleZijlstra committed Apr 14, 2022
Older