Skip to content
Permalink
main
Switch branches/tags

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
  8. gh-79512: Fixed names and __module__ value of weakref classes (GH-93719)

    Classes ReferenceType, ProxyType and CallableProxyType have now correct
    atrtributes __module__, __name__ and __qualname__.
    It makes them (types, not instances) pickleable.
    serhiy-storchaka committed Jun 14, 2022
  9. gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-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 committed Jun 14, 2022

Commits on Jun 13, 2022

  1. gh-89653: PEP 670: Macros always cast arguments in cpython/ (#93766)

    Header files in the Include/cpython/ are only included if
    the Py_LIMITED_API macro is not defined.
    vstinner committed Jun 13, 2022
  2. gh-93353: Fix importlib.resources._tempfile() finalizer (#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 committed Jun 13, 2022
  3. Remove ANY_VARARGS() macro from the C API (#93764)

    The macro was exposed by mistake.
    vstinner committed Jun 13, 2022
  4. gh-89653: PEP 670: Convert PyFunction macros (#93765)

    Convert PyFunction macros to static inline functions.
    vstinner committed Jun 13, 2022
Older