Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert 30935 defer bpo45162 to 312 #94285

This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jun 3, 2022

  1. Configuration menu
    Copy the full SHA
    1713ff0 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2022

  1. Configuration menu
    Copy the full SHA
    3284f86 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8150b8c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e12f34b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3d647e7 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2022

  1. pythongh-93442: Make C++ version of _Py_CAST work with 0/NULL. (pytho…

    …n#93500)
    
    Add C++ overloads for _Py_CAST_impl() to handle 0/NULL.  This will allow
    C++ extensions that pass 0 or NULL to macros using _Py_CAST() to
    continue to compile.  Without this, you get an error like:
    
        invalid ‘static_cast’ from type ‘int’ to type ‘_object*’
    
    The modern way to use a NULL value in C++ is to use nullptr.  However,
    we want to not break extensions that do things the old way.
    
    Co-authored-by: serge-sans-paille
    nascheme authored Jun 5, 2022
    Configuration menu
    Copy the full SHA
    8bcc3fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    713eb18 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f8367d View commit details
    Browse the repository at this point in the history
  4. pythongh-89973: Fix re.error in the fnmatch module. (pythonGH-93072)

    Character ranges with upper bound less that lower bound (e.g. [c-a])
    are now interpreted as empty ranges, for compatibility with other glob
    pattern implementations. Previously it was re.error.
    serhiy-storchaka authored Jun 5, 2022
    Configuration menu
    Copy the full SHA
    0902c3d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4082c8e View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2022

  1. Configuration menu
    Copy the full SHA
    9081bbd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c71d22 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    86a5e22 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    80a39da View commit details
    Browse the repository at this point in the history
  5. asyncio.Barrier docs: Fix typo (python#93371)

    taks -> tasks
    Omer Katz authored Jun 6, 2022
    Configuration menu
    Copy the full SHA
    8584981 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    56b5daf View commit details
    Browse the repository at this point in the history
  7. pythongh-90473: Make chmod a dummy on WASI, skip chmod tests (pythonG…

    …H-93534)
    
    WASI does not have the ``chmod(2)`` syscall yet.
    tiran authored Jun 6, 2022
    Configuration menu
    Copy the full SHA
    22fed60 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    71c8f96 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    46fde1f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d1e2e0e View commit details
    Browse the repository at this point in the history
  11. pythongh-89018: Improve documentation of sqlite3 exceptions (python…

    …#27645)
    
    - Order exceptions as in PEP 249
    - Reword descriptions, so they match the current behaviour
    
    Co-authored-by: Alex Waygood <[email protected]>
    erlend-aasland and AlexWaygood authored Jun 6, 2022
    Configuration menu
    Copy the full SHA
    bb0b768 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3256b17 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Configuration menu
    Copy the full SHA
    7403933 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    890c3be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    57e8ee7 View commit details
    Browse the repository at this point in the history
  4. pythongh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar…

    ….save() (pythonGH-93463)
    
    Note: This change is not effective on Microsoft Windows.
    
    Cookies can store sensitive information and should therefore be protected
    against unauthorized third parties. This is also described in issue python#79096.
    
    The filesystem permissions are currently set to 644, everyone can read the
    file. This commit changes the permissions to 600, only the creater of the file
    can read and modify it. This improves security, because it reduces the attack
    surface. Now the attacker needs control of the user that created the cookie or
    a ways to circumvent the filesystems permissions.
    
    This change is backwards incompatible. Systems that rely on world-readable
    cookies will breake. However, one could argue that those are misconfigured in
    the first place.
    pSub authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    c6f6ede View commit details
    Browse the repository at this point in the history
  5. pythongh-93162: Add ability to configure QueueHandler/QueueListener t…

    …ogether (pythonGH-93269)
    
    Also, provide getHandlerByName() and getHandlerNames() APIs.
    
    Closes python#93162.
    vsajip authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    1b74803 View commit details
    Browse the repository at this point in the history
  6. pythongh-57539: Increase calendar test coverage (pythonGH-93468)

    Co-authored-by: Sean Fleming
    Co-authored-by: Adam Turner <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    3 people authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    f0d0be3 View commit details
    Browse the repository at this point in the history
  7. pythongh-88831: In docs for asyncio.create_task, explain why strong r…

    …eferences to tasks are needed (pythonGH-93258)
    
    Co-authored-by: Łukasz Langa <[email protected]>
    agrommek and ambv authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    75ceae0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f012df7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7526092 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cdb73ae View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    70690c7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    296081a View commit details
    Browse the repository at this point in the history
  13. Fix PurePath.relative_to links in the pathlib documentation. (pytho…

    …nGH-93268)
    
    These are currently broken as they refer to :meth:`Path.relative_to` rather than :meth:`PurePath.relative_to`, and `relative_to` is a method on `PurePath`.
    jacksonriley authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    8ef7929 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f8eae6f View commit details
    Browse the repository at this point in the history
  15. pythongh-93370: Deprecate sqlite3.version and sqlite3.version_info (p…

    …ython#93482)
    
    Co-authored-by: Alex Waygood <[email protected]>
    Co-authored-by: Adam Turner <[email protected]>
    Co-authored-by: Erlend E. Aasland <[email protected]>
    4 people authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    ffc58a9 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

  1. Configuration menu
    Copy the full SHA
    5849af7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    875de61 View commit details
    Browse the repository at this point in the history
  3. pythongh-93584: Make all install+tests targets depends on all (python…

    …GH-93589)
    
    All install targets use the "all" target as synchronization point to
    prevent race conditions with PGO builds. PGO builds use recursive make,
    which can lead to two parallel `./python setup.py build` processes that
    step on each others toes.
    
    "test" targets now correctly compile PGO build in a clean repo.
    tiran authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    243ed54 View commit details
    Browse the repository at this point in the history
  4. pythongh-87961: Remove outdated notes from functions that aren't in t…

    …he Limited API (pythonGH-93581)
    
    * Remove outdated notes from functions that aren't in the Limited API
    
    Nowadays everything that *is* in the Limited API has a note added
    automatically.
    These notes could mislead people to think that these functions
    could never be added to the limited API. Remove them.
    
    * Also remove forgotten note on tp_vectorcall_offset not being finalized
    encukou authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    2c3fe5e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2dece90 View commit details
    Browse the repository at this point in the history
  6. pythongh-93575: Use correct way to calculate PyUnicode struct sizes (p…

    …ythonGH-93602)
    
    * pythongh-93575: Use correct way to calculate PyUnicode struct sizes
    
    * Add comment to keep test_sys and test_unicode in sync
    
    * Fix case code < 256
    tiran authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    5442561 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    22df2e0 View commit details
    Browse the repository at this point in the history
  8. pythongh-79096: Fix/improve http cookiejar tests (pythonGH-93614)

    Fixup of pythonGH-93463:
    - remove stray print
    - use proper way to check file mode
    - add working chmod decorator
    
    Co-authored-by: Łukasz Langa <[email protected]>
    tiran and ambv authored Jun 8, 2022
    Configuration menu
    Copy the full SHA
    68f6a5d View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2022

  1. Configuration menu
    Copy the full SHA
    cffa4f7 View commit details
    Browse the repository at this point in the history
  2. pythongh-90494: Reject 6th element of the __reduce__() tuple (pythonG…

    …H-93609)
    
    copy.copy() and copy.deepcopy() now always raise a TypeError if
    __reduce__() returns a tuple with length 6 instead of silently ignore
    the 6th item or produce incorrect result.
    serhiy-storchaka authored Jun 9, 2022
    Configuration menu
    Copy the full SHA
    a365dd6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a5ba0f4 View commit details
    Browse the repository at this point in the history
  4. bpo-45383: Get metaclass from bases in PyType_From* (pythonGH-28748)

    This checks the bases of of a type created using the FromSpec
    API to inherit the bases metaclasses.  The metaclass's alloc
    function will be called as is done in `tp_new` for classes
    created in Python.
    
    Co-authored-by: Petr Viktorin <[email protected]>
    Co-authored-by: Erlend Egeberg Aasland <[email protected]>
    3 people authored Jun 9, 2022
    Configuration menu
    Copy the full SHA
    7fef847 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e974b3e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5a4af3a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6099611 View commit details
    Browse the repository at this point in the history
  8. pythongh-90549: Fix leak of global named resources using multiprocess…

    …ing spawn (python#30617)
    
    Co-authored-by: XD Trol <[email protected]>
    Co-authored-by: Antoine Pitrou <[email protected]>
    3 people authored Jun 9, 2022
    Configuration menu
    Copy the full SHA
    30610d2 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2022

  1. Configuration menu
    Copy the full SHA
    d8395eb View commit details
    Browse the repository at this point in the history
  2. pythongh-90763: Modernise xx template module initialisation (python#9…

    …3078)
    
    Use C APIs such as PyModule_AddType instead of PyModule_AddObject.
    Also remove incorrect module decrefs if module fails to initialise.
    erlend-aasland authored Jun 10, 2022
    Configuration menu
    Copy the full SHA
    a87c9b5 View commit details
    Browse the repository at this point in the history
  3. pythongh-93491: Add support tier detection to configure (pythonGH-93492)

    Co-authored-by: Adam Turner <[email protected]>
    Co-authored-by: Steve Dower <[email protected]>
    Co-authored-by: Erlend Egeberg Aasland <[email protected]>
    4 people authored Jun 10, 2022
    Configuration menu
    Copy the full SHA
    3124d9a View commit details
    Browse the repository at this point in the history
  4. pythongh-93466: Document PyType_Spec doesn't accept repeated slot IDs…

    …; raise where this was problematic (pythonGH-93471)
    encukou authored Jun 10, 2022
    Configuration menu
    Copy the full SHA
    21a9a85 View commit details
    Browse the repository at this point in the history
  5. pythongh-93671: Avoid exponential backtracking in deeply nested seque…

    …nce patterns in match statements (pythonGH-93680)
    
    Co-authored-by: Łukasz Langa <[email protected]>
    pablogsal and ambv authored Jun 10, 2022
    Configuration menu
    Copy the full SHA
    53a8b17 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2ba0fd5 View commit details
    Browse the repository at this point in the history
  7. pythonGH-93621: reorder code in with/async-with exception exit path t…

    …o reduce the size of the exception table (pythonGH-93622)
    iritkatriel authored Jun 10, 2022
    Configuration menu
    Copy the full SHA
    cf730b5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    09243b8 View commit details
    Browse the repository at this point in the history
  9. pythongh-91317: Document that Path does not collapse initial // (py…

    …thonGH-32193)
    
    Documentation for `pathlib` says:
    
    > Spurious slashes and single dots are collapsed, but double dots ('..') are not, since this would change the meaning of a path in the face of symbolic links:
    
    However, it omits that initial double slashes also aren't collapsed.
    
    Later, in documentation of `PurePath.drive`, `PurePath.root`, and `PurePath.name` it mentions UNC but:
    
    - this abbreviation says nothing to a person who is unaware about existence of UNC (Wikipedia doesn't help either by [giving a disambiguation page](https://en.wikipedia.org/wiki/UNC))
    - it shows up only if a person needs to use a specific property or decides to fully learn what the module provides.
    
    For context, see the BPO entry.
    arhadthedev authored Jun 10, 2022
    Configuration menu
    Copy the full SHA
    78f1a43 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    484a235 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2022

  1. Configuration menu
    Copy the full SHA
    4c496f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc5e02b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0b7aa7 View commit details
    Browse the repository at this point in the history
  4. pythongh-90153: whatsnew: "z" option in format spec (pythonGH-93624)

    Add what's new entry for PEP 682 in Python 3.11.
    belm0 authored Jun 11, 2022
    Configuration menu
    Copy the full SHA
    010284b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bc3b31e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5d8e7a1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    733e15f View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2022

  1. Configuration menu
    Copy the full SHA
    23c9feb View commit details
    Browse the repository at this point in the history
  2. pythongh-91162: Support splitting of unpacked arbitrary-length tuple …

    …over TypeVar and TypeVarTuple parameters (alt) (pythonGH-93412)
    
    For example:
    
      A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]]
      A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int]
    serhiy-storchaka authored Jun 12, 2022
    Configuration menu
    Copy the full SHA
    3473817 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8f728e5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ae1ca74 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9331087 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2022

  1. Configuration menu
    Copy the full SHA
    c5d0517 View commit details
    Browse the repository at this point in the history
  2. pythongh-89653: PEP 670: Convert PyFunction macros (python#93765)

    Convert PyFunction macros to static inline functions.
    vstinner authored Jun 13, 2022
    Configuration menu
    Copy the full SHA
    272bec4 View commit details
    Browse the repository at this point in the history
  3. Remove ANY_VARARGS() macro from the C API (python#93764)

    The macro was exposed by mistake.
    vstinner authored Jun 13, 2022
    Configuration menu
    Copy the full SHA
    65ac273 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    259dd71 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    65ff27c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3ceb4b8 View commit details
    Browse the repository at this point in the history
  7. pythongh-93353: Fix importlib.resources._tempfile() finalizer (python…

    …#93377)
    
    Fix the importlib.resources.as_file() context manager to remove the
    temporary file if destroyed late during Python finalization: keep a
    local reference to the os.remove() function. Patch by Victor Stinner.
    vstinner authored Jun 13, 2022
    Configuration menu
    Copy the full SHA
    443ca73 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c200757 View commit details
    Browse the repository at this point in the history
  9. pythongh-89653: PEP 670: Macros always cast arguments in cpython/ (py…

    …thon#93766)
    
    Header files in the Include/cpython/ are only included if
    the Py_LIMITED_API macro is not defined.
    vstinner authored Jun 13, 2022
    Configuration menu
    Copy the full SHA
    df22eec View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7b2064b View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2022

  1. pythongh-93741: Add private C API _PyImport_GetModuleAttrString() (py…

    …thonGH-93742)
    
    It combines PyImport_ImportModule() and PyObject_GetAttrString()
    and saves 4-6 lines of code on every use.
    
    Add also _PyImport_GetModuleAttr() which takes Python strings as arguments.
    serhiy-storchaka authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    6fd4c8e View commit details
    Browse the repository at this point in the history
  2. pythongh-79512: Fixed names and __module__ value of weakref classes (p…

    …ythonGH-93719)
    
    Classes ReferenceType, ProxyType and CallableProxyType have now correct
    atrtributes __module__, __name__ and __qualname__.
    It makes them (types, not instances) pickleable.
    serhiy-storchaka authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    8352e32 View commit details
    Browse the repository at this point in the history
  3. pythongh-91810: Fix regression with writing an XML declaration with e…

    …ncoding='unicode' (pythonGH-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 authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    d7db9dc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5bcf33d View commit details
    Browse the repository at this point in the history
  5. pythongh-89546: Clean up PyType_FromMetaclass (pythonGH-93686)

    When changing PyType_FromMetaclass recently (pythonGH-93012, pythonGH-93466, pythonGH-28748)
    I found a bunch of opportunities to improve the code. Here they are.
    
    Fixes: python#89546
    
    Automerge-Triggered-By: GH:encukou
    encukou authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    3597c12 View commit details
    Browse the repository at this point in the history
  6. pythongh-91321: Fix compatibility with C++ older than C++11 (python#9…

    …3784)
    
    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 authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    4caf5c2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2bf7475 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3cd1a5d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cd543d0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b083450 View commit details
    Browse the repository at this point in the history
  11. pythongh-93353: regrtest checks for leaked temporary files (python#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 authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    e566ce5 View commit details
    Browse the repository at this point in the history
  12. pythongh-79579: Improve DML query detection in sqlite3 (python#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 authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    4674007 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    af15cc5 View commit details
    Browse the repository at this point in the history
  14. pythongh-91877: Fix WriteTransport.get_write_buffer_{limits,size} docs (

    python#92338)
    
    - Amend docs for WriteTransport.get_write_buffer_limits
    - Add docs for WriteTransport.get_write_buffer_size
    TechieBoy authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    a338e10 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    38a7f78 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    cdf7097 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d773c6e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    ef6e44d View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6b33000 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    36934a1 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    ad90d49 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    274769c View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2022

  1. Configuration menu
    Copy the full SHA
    4f26963 View commit details
    Browse the repository at this point in the history
  2. pythongh-93183: Adjust wording in socket docs (python#93832)

    package => packet
    
    Co-authored-by: Victor Norman
    erlend-aasland authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    cdd3984 View commit details
    Browse the repository at this point in the history
  3. pythongh-93829: In sqlite3, replace Py_BuildValue with faster APIs (p…

    …ython#93830)
    
    - In Modules/_sqlite/connection.c, use PyLong_FromLong
    - In Modules/_sqlite/microprotocols.c, use PyTuple_Pack
    erlend-aasland authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    4e9fa71 View commit details
    Browse the repository at this point in the history
  4. Add test.support.busy_retry() (python#93770)

    Add busy_retry() and sleeping_retry() functions to test.support.
    vstinner authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    7e9eaad View commit details
    Browse the repository at this point in the history
  5. pythongh-87260: Update sqlite3 signature docs to reflect actual imple…

    …mentation (python#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 authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    d318346 View commit details
    Browse the repository at this point in the history
  6. test_thread uses support.sleeping_retry() (python#93849)

    test_thread.test_count() now fails if it takes longer than
    LONG_TIMEOUT seconds.
    vstinner authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    bddbd80 View commit details
    Browse the repository at this point in the history
  7. Use support.sleeping_retry() and support.busy_retry() (python#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 authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    0ba8027 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ff095e1 View commit details
    Browse the repository at this point in the history
  9. pythongh-93857: Fix broken audit-event targets in sqlite3 docs (pytho…

    …n#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 authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    ce4d11f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b415c5f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    99be1cb View commit details
    Browse the repository at this point in the history
  12. test_asyncio: run_until() implements exponential sleep (python#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 authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    41fccd2 View commit details
    Browse the repository at this point in the history
  13. test_asyncore: Optimize capture_server() (python#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 authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    46e455f View commit details
    Browse the repository at this point in the history
  14. Tests call sleeping_retry() with SHORT_TIMEOUT (python#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 authored Jun 15, 2022
    Configuration menu
    Copy the full SHA
    50e0866 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8ba1c7f View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2022

  1. pythongh-93820: Fix copy() regression in enum.Flag (pythonGH-93876)

    pythonGH-26658 introduced a regression in copy / pickle protocol for combined
    `enum.Flag`s. `copy.copy(re.A | re.I)` would fail with
    `AttributeError: ASCII|IGNORECASE`.
    
    `enum.Flag` now has a `__reduce_ex__()` method that reduces flags by
    combined value, not by combined name.
    tiran authored Jun 16, 2022
    Configuration menu
    Copy the full SHA
    05b32c1 View commit details
    Browse the repository at this point in the history
  2. Call busy_retry() and sleeping_retry() with error=True (python#93871)

    Tests no longer call busy_retry() and sleeping_retry() with
    error=False: raise an exception if the loop times out.
    vstinner authored Jun 16, 2022
    Configuration menu
    Copy the full SHA
    484b40b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7546914 View commit details
    Browse the repository at this point in the history
  4. pythongh-91321: Fix test_cppext for C++03 (python#93902)

    Don't build _testcppext.cpp with -Wzero-as-null-pointer-constant when
    testing C++03: only use this compiler flag with C++11.
    vstinner authored Jun 16, 2022
    Configuration menu
    Copy the full SHA
    a38c2a6 View commit details
    Browse the repository at this point in the history
  5. pythongh-91577: SharedMemory move imports out of methods (python#91579)

    SharedMemory.unlink() uses the unregister() function from resource_tracker. Previously it was imported in the method, but this can fail if the method is called during interpreter shutdown, for example when unlink is part of a __del__() method.
    
    Moving the import to the top of the file, means that the unregister() method is available during interpreter shutdown.
    
    The register call in SharedMemory.__init__() can also use this imported resource_tracker.
    samtygier authored Jun 16, 2022
    Configuration menu
    Copy the full SHA
    9a458be View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d5be9a5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab45c1d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    138db8e View commit details
    Browse the repository at this point in the history
  9. pythongh-93353: regrtest supports checking tmp files with -j2 (python…

    …#93909)
    
    regrtest now also implements checking for leaked temporary files and
    directories when using -jN for N >= 2. Use tempfile.mkdtemp() to
    create the temporary directory. Skip this check on WASI.
    vstinner authored Jun 16, 2022
    Configuration menu
    Copy the full SHA
    4f85cec View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f8e576b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    38af903 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2022

  1. pythonGH-83658: make multiprocessing.Pool raise an exception if maxta…

    …sksperchild is not None or a positive int (pythonGH-93364)
    
    Closes python#83658.
    iritkatriel authored Jun 17, 2022
    Configuration menu
    Copy the full SHA
    e37a158 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    538f289 View commit details
    Browse the repository at this point in the history
  3. pythongh-91404: Revert "bpo-23689: re module, fix memory leak when a …

    …match is terminated by a signal or allocation failure (pythonGH-32283) (python#93882)
    
    Revert "bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure (pythonGH-32283)"
    
    This reverts commit 6e3eee5.
    
    Manual fixups to increase the MAGIC number and to handle conflicts with
    a couple of changes that landed after that.
    
    Thanks for reviews by Ma Lin and Serhiy Storchaka.
    gpshead authored Jun 17, 2022
    Configuration menu
    Copy the full SHA
    4beee0c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ffc228d View commit details
    Browse the repository at this point in the history
  5. pythongh-93852: Add test.support.create_unix_domain_name() (python#93914

    )
    
    test_asyncio, test_logging, test_socket and test_socketserver now
    create AF_UNIX domains in the current directory to no longer fail
    with OSError("AF_UNIX path too long") if the temporary directory (the
    TMPDIR environment variable) is too long.
    
    Modify the following tests to use create_unix_domain_name():
    
    * test_asyncio
    * test_logging
    * test_socket
    * test_socketserver
    
    test_asyncio.utils: remove unused time import.
    vstinner authored Jun 17, 2022
    Configuration menu
    Copy the full SHA
    c5b750d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1735710 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e444752 View commit details
    Browse the repository at this point in the history
  8. pythongh-74953: Fix PyThread_acquire_lock_timed() code recomputing th…

    …e timeout (python#93941)
    
    Set timeout, don't create a local variable with the same name.
    vstinner authored Jun 17, 2022
    Configuration menu
    Copy the full SHA
    f64557f View commit details
    Browse the repository at this point in the history
  9. pythongh-77782: Deprecate global configuration variable (python#93943)

    Deprecate global configuration variable like
    Py_IgnoreEnvironmentFlag: the Py_InitializeFromConfig() API should be
    instead.
    
    Fix declaration of Py_GETENV(): use PyAPI_FUNC(), not PyAPI_DATA().
    vstinner authored Jun 17, 2022
    Configuration menu
    Copy the full SHA
    0ff626f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a51742a View commit details
    Browse the repository at this point in the history
  11. pythongh-92888: Fix memoryview bad __index__ use after free (python…

    …GH-92946)
    
    Co-authored-by: chilaxan <[email protected]>
    Co-authored-by: Serhiy Storchaka <[email protected]>
    3 people authored Jun 17, 2022
    Configuration menu
    Copy the full SHA
    11190c4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    96464e5 View commit details
    Browse the repository at this point in the history
  13. pythongh-92611: Add details on replacements for cgi utility funcs (py…

    …thonGH-92792)
    
    Per @brettcannon 's [suggestions on the Discourse thread](https://discuss.python.org/t/pep-594-take-2-removing-dead-batteries-from-the-standard-library/13508/51), discussed in python#92611 and as a followup to PR python#92612 , this PR add additional specific per-function replacement information for the utility functions in the `cgi` module deprecated by PEP 594 (PEP-594).
    
    @brettcannon , should this be backported (without the `deprecated-removed` , which I would update it accordingly and re-add in my other PR adding that to the others for 3.11+), or just go in 3.11+?
    CAM-Gerlach authored Jun 17, 2022
    Configuration menu
    Copy the full SHA
    71354ad View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b1ae4af View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c1e1942 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. Add jaraco as primary owner of importlib.metadata and importlib.resou…

    …rces. (python#93960)
    
    * Add jaraco as primary owner of importlib.metadata and importlib.resources.
    
    * Align indentation.
    
    Co-authored-by: Ezio Melotti <[email protected]>
    
    Co-authored-by: Ezio Melotti <[email protected]>
    jaraco and ezio-melotti authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    b96d56d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    084023c View commit details
    Browse the repository at this point in the history
  3. pythongh-89828: Do not relay the __class__ attribute in GenericAlias (p…

    …ython#93754)
    
    list[int].__class__ returned type, and isinstance(list[int], type)
    returned True. It caused numerous problems in code that checks
    isinstance(x, type).
    serhiy-storchaka authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    f9433ff View commit details
    Browse the repository at this point in the history
  4. pythongh-84461: Fix pydebug Emscripten browser builds (pythonGH-93982)

    wasm_assets script did not take the ABIFLAG flag of sysconfigdata into
    account.
    tiran authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    7a2cc35 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fea1e9b View commit details
    Browse the repository at this point in the history
  6. pythongh-91387: Fix tarfile test on WASI (pythonGH-93984)

    WASI's rmdir() syscall does not like the trailing slash.
    tiran authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    dd78aae View commit details
    Browse the repository at this point in the history
  7. pythongh-93975: Nicer error reporting in test_venv (pythonGH-93959)

    - pythongh-93957: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip.
    - Update changelog
    
    This change does three things:
    
    1. Extract a function for trapping output in subprocesses.
    2. Emit both stdout and stderr when encountering an error.
    3. Apply the change to `ensurepip._uninstall` check.
    jaraco authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    6066f45 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2022

  1. Configuration menu
    Copy the full SHA
    726448e View commit details
    Browse the repository at this point in the history
  2. What's new in 3.10: fix link to issue (python#93968)

    * What's new in 3.10: fix link to issue
    
    * What's new in 3.10: fix link to GH issue
    
    Co-authored-by: Ezio Melotti <[email protected]>
    
    Co-authored-by: Ezio Melotti <[email protected]>
    hugovk and ezio-melotti authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    59c1b33 View commit details
    Browse the repository at this point in the history
  3. pythongh-93761: Fix test_logging test_config_queue_handler() race con…

    …dition (python#93952)
    
    Fix a race condition in test_config_queue_handler() of test_logging.
    vstinner authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    dba3fa5 View commit details
    Browse the repository at this point in the history
  4. pythongh-74953: Reformat PyThread_acquire_lock_timed() (python#93947)

    Reformat the pthread implementation of PyThread_acquire_lock_timed()
    using a mutex and a conditioinal variable.
    
    * Add goto to avoid multiple indentation levels and exit quickly
    * Use "while(1)" and make the control flow more obvious.
    * PEP 7: Add braces around if blocks.
    vstinner authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    2664d9a View commit details
    Browse the repository at this point in the history
  5. pythongh-93937, C API: Move PyFrame_GetBack() to Python.h (python#93938)

    Move the follow functions and type from frameobject.h to pyframe.h,
    so the standard <Python.h> provide frame getter functions:
    
    * PyFrame_Check()
    * PyFrame_GetBack()
    * PyFrame_GetBuiltins()
    * PyFrame_GetGenerator()
    * PyFrame_GetGlobals()
    * PyFrame_GetLasti()
    * PyFrame_GetLocals()
    * PyFrame_Type
    
    Remove #include "frameobject.h" from many C files. It's no longer
    needed.
    vstinner authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    27b9894 View commit details
    Browse the repository at this point in the history
  6. pythongh-93991: Use boolean instead of 0/1 for condition check (pytho…

    …nGH-93992)
    
    # pythongh-93991: Use boolean instead of 0/1 for condition check
    leikdga authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    476d302 View commit details
    Browse the repository at this point in the history
  7. pythongh-84461: Fix Emscripten umask and permission issues (pythonGH-…

    …94002)
    
    - Emscripten's default umask is too strict, see
      emscripten-core/emscripten#17269
    - getuid/getgid and geteuid/getegid are stubs that always return 0
      (root). Disable effective uid/gid syscalls and fix tests that use
      chmod() current user.
    - Cannot drop X bit from directory.
    tiran authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    2702e40 View commit details
    Browse the repository at this point in the history
  8. pythongh-84461: Skip test_unwritable_directory again on Emscripten (p…

    …ythonGH-94007)
    
    pythonGH-93992 removed geteuid() and enabled the test again on Emscripten.
    tiran authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    62363bf View commit details
    Browse the repository at this point in the history
  9. pythongh-93925: Improve clarity of sqlite3 commit/rollback, and close…

    … docs (python#93926)
    
    Co-authored-by: CAM Gerlach <[email protected]>
    Erlend Egeberg Aasland and CAM-Gerlach authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    6446592 View commit details
    Browse the repository at this point in the history
  10. pythongh-61162: Clarify sqlite3 connection context manager docs (pyth…

    …onGH-93890)
    
    Explicitly note that transactions are only closed if there is an open
    transation at `__exit__`, and that transactions are not implicitly
    opened during `__enter__`.
    
    Co-authored-by: CAM Gerlach <[email protected]>
    Co-authored-by: Stanley <[email protected]>
    
    Automerge-Triggered-By: GH:erlend-aasland
    erlend-aasland authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    8e08978 View commit details
    Browse the repository at this point in the history
  11. pythongh-79009: sqlite3.iterdump now correctly handles tables with au…

    …toincrement (python#9621)
    
    Co-authored-by: Erlend E. Aasland <[email protected]>
    itssme and erlend-aasland authored Jun 19, 2022
    Configuration menu
    Copy the full SHA
    affa9f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2022

  1. Configuration menu
    Copy the full SHA
    774ef28 View commit details
    Browse the repository at this point in the history
  2. pythonGH-93897: Store frame size in code object and de-opt if insuffi…

    …cient space on thread frame stack. (pythonGH-93908)
    markshannon authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    45e62a2 View commit details
    Browse the repository at this point in the history
  3. pythonGH-93516: Speedup line number checks when tracing. (pythonGH-93763

    )
    
    * Use a lookup table to reduce overhead of getting line numbers during tracing.
    markshannon authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    ab0e601 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    61f24e7 View commit details
    Browse the repository at this point in the history
  5. pythongh-87347: Add parenthesis around macro arguments (python#93915)

    Add unit test on Py_MEMBER_SIZE() and some other macros.
    vstinner authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    7ad6f74 View commit details
    Browse the repository at this point in the history
  6. pythongh-93937: PyOS_StdioReadline() uses PyConfig.legacy_windows_std…

    …io (python#94024)
    
    On Windows, PyOS_StdioReadline() now gets
    PyConfig.legacy_windows_stdio from _PyOS_ReadlineTState, rather than
    using the deprecated global Py_LegacyWindowsStdioFlag variable.
    
    Fix also a compiler warning in Py_SetStandardStreamEncoding().
    vstinner authored Jun 20, 2022
    Configuration menu
    Copy the full SHA
    cfb986a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1603a10 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Configuration menu
    Copy the full SHA
    77c839c View commit details
    Browse the repository at this point in the history
  2. pythonGH-93678: refactor compiler so that optimizer does not need the…

    … assembler and compiler structs (pythonGH-93842)
    iritkatriel authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    889772f View commit details
    Browse the repository at this point in the history
  3. pythongh-93839: Move Lib/ctypes/test/ to Lib/test/test_ctypes/ (pytho…

    …n#94041)
    
    * Move Lib/ctypes/test/ to Lib/test/test_ctypes/
    * Remove Lib/test/test_ctypes.py
    * Update imports and build system.
    vstinner authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    d82e0bf View commit details
    Browse the repository at this point in the history
  4. pythongh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (py…

    …thon#94043)
    
    * Move Lib/unittest/test/ to Lib/test/test_unittest/
    * Remove Lib/test/test_unittest.py
    * Replace unittest.test with test.test_unittest
    * Remove unittest.load_tests()
    * Rewrite unittest __init__.py and __main__.py
    * Update build system, CODEOWNERS, and wasm_assets.py
    vstinner authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    c735d54 View commit details
    Browse the repository at this point in the history
  5. pythonGH-91432: Specialize FOR_ITER (pythonGH-91713)

    * Adds FOR_ITER_LIST and FOR_ITER_RANGE specializations.
    
    * Adds _PyLong_AssignValue() internal function to avoid temporary boxing of ints.
    sweeneyde authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    5fcfdd8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    94eeac0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0ff7b99 View commit details
    Browse the repository at this point in the history
  8. pythongh-93839: Use load_package_tests() for testmock (pythonGH-94055)

    Fixes failing tests on WebAssembly platforms.
    
    Automerge-Triggered-By: GH:tiran
    tiran authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    50ebd72 View commit details
    Browse the repository at this point in the history
  9. pythongh-54781: Move Lib/lib2to3/tests/ to Lib/test/test_lib2to3/ (py…

    …thon#94049)
    
    * Move Lib/lib2to3/tests/ to Lib/test/test_lib2to3/.
    * Remove Lib/test/test_lib2to3.py.
    * Update imports.
    * all_project_files(): use different paths and sort files
      to make the tests more reproducible.
    * Update references to tests.
    vstinner authored Jun 21, 2022
    1 Configuration menu
    Copy the full SHA
    616fa34 View commit details
    Browse the repository at this point in the history
  10. pythongh-74953: _PyThread_cond_after() uses _PyTime_t (python#94056)

    pthread _PyThread_cond_after() implementation now uses the _PyTime_t
    type to handle properly overflow: clamp to the maximum value.
    
    Remove MICROSECONDS_TO_TIMESPEC() function.
    vstinner authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    c7a79bb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6f8875e View commit details
    Browse the repository at this point in the history
  12. pythongh-86986: Drop compatibility support for Sphinx 2 (pythonGH-9…

    …3737)
    
    * Revert "bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (pythonGH-24282)"
    
    This reverts commit 5c1f15b
    
    * Revert "bpo-42579: Make workaround for various versions of Sphinx more robust (pythonGH-23662)"
    
    This reverts commit b63a620.
    AA-Turner authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    0efe3a1 View commit details
    Browse the repository at this point in the history
  13. pythongh-94068: Remove HVSOCKET_CONTAINER_PASSTHRU constant because i…

    …t has been removed from Windows (pythonGH-94069)
    
    Fixes python#94068
    
    Automerge-Triggered-By: GH:zware
    zooba authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    5a08e0f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7327d61 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f62ff97 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    8305137 View commit details
    Browse the repository at this point in the history
  17. Minor optimization for Fractions.limit_denominator (pythonGH-93730)

    When we construct the upper and lower candidates in limit_denominator,
    the numerator and denominator are already relatively prime (and the
    denominator positive) by construction, so there's no need to go through
    the usual normalisation in the constructor. This saves a couple of
    potentially expensive gcd calls.
    
    Suggested by Michael Scott Asato Cuthbert in pythonGH-93477.
    mdickinson authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    420f0df View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    51d6731 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    dd5cf84 View commit details
    Browse the repository at this point in the history
  20. pythongh-93021: Fix __text_signature__ for __get__ (pythonGH-93023)

    Because of the way wrap_descr_get is written, the second argument
    to __get__ methods implemented through the wrapper is always
    optional.
    JelleZijlstra authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    4e08fbc View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    f28ec34 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    0709586 View commit details
    Browse the repository at this point in the history
  23. pythongh-87389: Fix an open redirection vulnerability in http.server. (

    …python#93879)
    
    Fix an open redirection vulnerability in the `http.server` module when
    an URI path starts with `//` that could produce a 301 Location header
    with a misleading target.  Vulnerability discovered, and logic fix
    proposed, by Hamza Avvan (@hamzaavvan).
    
    Test and comments authored by Gregory P. Smith [Google].
    gpshead authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    4abab6b View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    296e4ef View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    6575841 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. Configuration menu
    Copy the full SHA
    9a479c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f805d37 View commit details
    Browse the repository at this point in the history
  3. pythongh-74696: Do not change the current working directory in shutil…

    ….make_archive() if possible (pythonGH-93160)
    
    It is no longer changed when create a zip or tar archive.
    
    It is still changed for custom archivers registered with shutil.register_archive_format()
    if root_dir is not None.
    
    Co-authored-by: Éric <[email protected]>
    Co-authored-by: Łukasz Langa <[email protected]>
    3 people authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    fda4b2f View commit details
    Browse the repository at this point in the history
  4. pythongh-94101 Disallow instantiation of SSLSession objects (pythonGH…

    …-94102)
    
    Fixes python#94101
    
    Automerge-Triggered-By: GH:tiran
    chgnrdv authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    dc8e1d0 View commit details
    Browse the repository at this point in the history
  5. Fix typo in _io.TextIOWrapper Clinic input (python#94037)

    Co-authored-by: Łukasz Langa <[email protected]>
    fikotta and ambv authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    ca308c1 View commit details
    Browse the repository at this point in the history
  6. pythongh-93951: In test_bdb.StateTestCase.test_skip, avoid including …

    …auxiliary importers. (pythonGH-93962)
    
    Co-authored-by: Brett Cannon <[email protected]>
    jaraco and brettcannon authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    c029b55 View commit details
    Browse the repository at this point in the history
  7. pythongh-91172: Create a workflow for verifying bundled pip and setup…

    …tools (pythonGH-31885)
    
    Co-authored-by: Hugo van Kemenade <[email protected]>
    Co-authored-by: Adam Turner <[email protected]>
    3 people authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    d36954b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8661c50 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    47e3562 View commit details
    Browse the repository at this point in the history
  10. pythongh-54781: Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/ (

    …python#94070)
    
    * Move Lib/tkinter/test/test_tkinter/ to Lib/test/test_tkinter/.
    * Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/.
    * Add Lib/test/test_ttk/__init__.py based on test_ttk_guionly.py.
    * Add Lib/test/test_tkinter/__init__.py
    * Remove old Lib/test/test_tk.py.
    * Remove old Lib/test/test_ttk_guionly.py.
    * Add __main__ sub-modules.
    * Update imports and update references to rename files.
    vstinner authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    c1fb12e View commit details
    Browse the repository at this point in the history
  11. pythongh-84623: Move imports in doctests (python#94133)

    Move imports in doctests to prevent false alarms in pyflakes.
    vstinner authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    e52009d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    dd39e29 View commit details
    Browse the repository at this point in the history
  13. pythongh-84623: Remove unused imports in idlelib (python#94143)

    Remove commented code in test_debugger_r.py.
    
    Co-authored-by: Terry Jan Reedy <[email protected]>
    vstinner and terryjreedy authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    576dd90 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. Configuration menu
    Copy the full SHA
    9877f4c View commit details
    Browse the repository at this point in the history
  2. Closes pythongh-94152: Update pyvideo.org URL (pythonGH-94075)

    The URL is now https://pyvideo.org, which uses HTTPS and avoids a redirect.
    partev authored Jun 23, 2022
    Configuration menu
    Copy the full SHA
    7c439dc View commit details
    Browse the repository at this point in the history
  3. pythongh-91456: [Enum] Deprecate default auto() behavior with mixed v…

    …alue types (pythonGH-91457)
    
    When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value.
    
    Co-authored-by: Ethan Furman <[email protected]>
    oscar-LT and ethanfurman authored Jun 23, 2022
    Configuration menu
    Copy the full SHA
    fb1e950 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    15bfabd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    11e865c View commit details
    Browse the repository at this point in the history
  6. pythongh-89121: Keep the number of pending SQLite statements to a min…

    …imum (python#30379)
    
    Make sure statements that have run to completion or errored are
    reset and cleared off the cursor for all paths in execute() and
    executemany().
    erlend-aasland authored Jun 23, 2022
    Configuration menu
    Copy the full SHA
    8928531 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5b6e576 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b4e0d61 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2fc83ac View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4e796f5 View commit details
    Browse the repository at this point in the history
  11. pythongh-91219: Add an index_pages default list and parameter to Simp…

    …leHTTPRequestHandler (pythonGH-31985)
    
    * Add an index_pages default list to SimpleHTTPRequestHandler and an
    optional constructor parameter that allows the default indexes pages
    list to be overridden.  This makes it easy to set a new index page name
    without having to override send_head.
    myronww authored Jun 23, 2022
    Configuration menu
    Copy the full SHA
    9a95fa9 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    28a2ccf View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8e6ecca View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5075e81 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2022

  1. pythongh-94169: Remove deprecated io.OpenWrapper (python#94170)

    Remove io.OpenWrapper and _pyio.OpenWrapper, deprecated in Python
    3.10: just use :func:`open` instead. The open() (io.open()) function
    is a built-in function. Since Python 3.10, _pyio.open() is also a
    static method.
    vstinner authored Jun 24, 2022
    Configuration menu
    Copy the full SHA
    6e33ba1 View commit details
    Browse the repository at this point in the history
  2. pythongh-94199: Remove ssl.RAND_pseudo_bytes() function (python#94202)

    Remove the ssl.RAND_pseudo_bytes() function, deprecated in Python
    3.6: use os.urandom() or ssl.RAND_bytes() instead.
    vstinner authored Jun 24, 2022
    Configuration menu
    Copy the full SHA
    d435a18 View commit details
    Browse the repository at this point in the history
  3. pythongh-94196: Remove gzip.GzipFile.filename attribute (python#94197)

    gzip: Remove the filename attribute of gzip.GzipFile,
    deprecated since Python 2.6, use the name attribute instead. In write
    mode, the filename attribute added '.gz' file extension if it was not
    present.
    vstinner authored Jun 24, 2022
    Configuration menu
    Copy the full SHA
    d3a27e4 View commit details
    Browse the repository at this point in the history
  4. pythongh-93692: remove "build finished successfully" message from set…

    …up.py (python#93693)
    
    The message was only emitted when the build succeeded _and_ there were
    missing modules.
    erlend-aasland authored Jun 24, 2022
    Configuration menu
    Copy the full SHA
    ab077d1 View commit details
    Browse the repository at this point in the history
  5. pythongh-84461: Fix ctypes and test_ctypes on Emscripten (python#94142)

    - c_longlong and c_longdouble need experimental WASM bigint.
    - Skip tests that need threading
    - Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
    tiran authored Jun 24, 2022
    Configuration menu
    Copy the full SHA
    8625802 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    51fd4de View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e69306f View commit details
    Browse the repository at this point in the history
  8. pythongh-94172: urllib.request avoids deprecated check_hostname (pyth…

    …on#94193)
    
    The urllib.request no longer uses the deprecated check_hostname
    parameter of the http.client module.
    
    Add private http.client._create_https_context() helper to http.client,
    used by urllib.request.
    
    Remove the now redundant check on check_hostname and verify_mode in
    http.client: the SSLContext.check_hostname setter already implements
    the check.
    vstinner authored Jun 24, 2022
    Configuration menu
    Copy the full SHA
    f0b234e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    91f9947 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a91ffcf View commit details
    Browse the repository at this point in the history
  11. pythongh-93382: Sync up co_code changes with 3.11 (pythonGH-94227)

    Sync up co_code changes with 3.11 commit 852b4d4.
    Fidget-Spinner authored Jun 24, 2022
    Configuration menu
    Copy the full SHA
    50a5ab2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0a40025 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    605e9c6 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2022

  1. bpo-46642: Explicitly disallow subclassing of instaces of TypeVar, Pa…

    …ramSpec, etc (pythonGH-31148)
    
    The existing test covering this case passed only incidentally. We
    explicitly disallow doing this and add a proper error message.
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    GBeauregard and serhiy-storchaka authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    81e91c9 View commit details
    Browse the repository at this point in the history
  2. bpo-26253: Add compressionlevel to tarfile stream (pythonGH-2962)

    `tarfile` already accepts a compressionlevel argument for creating
    files. This patch adds the same for stream-based tarfile usage.
    The default is 9, the value that was previously hard-coded.
    jarondl authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    50cd4b6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b528499 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    944c7d8 View commit details
    Browse the repository at this point in the history
  5. pythongh-94207: Fix struct module leak (pythonGH-94239)

    Make _struct.Struct a GC type
    
    This fixes a memory leak in the _struct module, where as soon
    as a Struct object is stored in the cache, there's a cycle from
    the _struct module to the cache to Struct objects to the Struct
    type back to the module. If _struct.Struct is not gc-tracked, that
    cycle is never collected.
    
    This PR makes _struct.Struct GC-tracked, and adds a regression test.
    mdickinson authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    6b86534 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    75cb3ab View commit details
    Browse the repository at this point in the history
  7. pythongh-77560: Report possible errors in restoring builtins at final…

    …ization (pythonGH-94255)
    
    Seems in the past the copy of builtins was not made in some scenarios,
    and the error was silenced. Write it now to stderr, so we have a chance
    to see it.
    serhiy-storchaka authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    bec802d View commit details
    Browse the repository at this point in the history
  8. pythongh-90016: Reword sqlite3 adapter/converter docs (python#93095)

    Also add adapters and converter recipes.
    
    Co-authored-by: CAM Gerlach <[email protected]>
    Co-authored-by: Alex Waygood <[email protected]
    erlend-aasland and CAM-Gerlach authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    bd3c1c1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c57a1c7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9af6b75 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2022

  1. pythongh-93259: Validate arg to Distribution.from_name. (pythonGH…

    …-94270)
    
    Syncs with importlib_metadata 4.12.0.
    jaraco authored Jun 26, 2022
    Configuration menu
    Copy the full SHA
    38612a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47b63da View commit details
    Browse the repository at this point in the history