Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Oct 15, 2022

  1. gh-98227: executionmodel.rst: except* can also bind names (#98256)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    BiscuitCandy and JelleZijlstra committed Oct 15, 2022
  2. gh-95971: Turn @writes_bytecode_files to skip when not running (#95972)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    youknowone and JelleZijlstra committed Oct 15, 2022
  3. gh-85455: Add missing doc strings and improve docs (#21573)

    * Add missing doc strings and improve docs
    
    * Use imperative form
    
    * Modify docstring wording
    nanjekyejoannah committed Oct 15, 2022
  4. gh-85525: Indicate supported sound header formats (#21575)

    * Indicate supported sound header formats
    
    * modify file names
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    nanjekyejoannah and JelleZijlstra committed Oct 15, 2022

Commits on Oct 14, 2022

  1. gh-98251: Allow venv to pass along PYTHON* variables to pip and ensur…

    …epip when they do not impact path resolution (GH-98259)
    zooba committed Oct 14, 2022

Commits on Oct 13, 2022

  1. Bpo-41246: IOCP Proactor avoid callback code duplication (#21399)

    Use the same callback function for overlapped operations recv, recv_into, recvfrom, sendto, send, and sendfile inside IocpProactor.
    tontinton committed Oct 13, 2022
  2. bpo-46364: Use sockets for stdin of asyncio only on AIX (#30596)

    Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de>
    Co-authored-by: July Tikhonov <july.tikh@gmail.com>
    xopham and tifv committed Oct 13, 2022
  3. gh-98178: syslog() is not thread-safe on macOS (#98213)

    On macOS, fix a crash in syslog.syslog() in multi-threaded
    applications. On macOS, the libc syslog() function is not
    thread-safe, so syslog.syslog() no longer releases the GIL to call
    it.
    vstinner committed Oct 13, 2022

Commits on Oct 12, 2022

  1. gh-97982: Factorize PyUnicode_Count() and unicode_count() code (#98025)

    Add unicode_count_impl() to factorize PyUnicode_Count()
    and unicode_count() code.
    sobolevn committed Oct 12, 2022
  2. gh-96265: Formatting changes for faq/general (#98129)

    * Some formatting changes for general faq
    
    * Use list for Python versioning
    
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    
    * New line for list, list for a/b/rc
    
    * Line wrap for 80 chars
    
    * More line wrap
    
    * Remove PythonWin mention.
    
    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    3 people committed Oct 12, 2022
  3. tutorial: remove "with single quotes" (#98204)

    Closes #91856.
    
    On Windows double quotes are sometimes better, on Unix usually
    single quotes. It's not our place to explain that, so just don't.
    JelleZijlstra committed Oct 12, 2022
  4. gh-97669: Remove Tools/scripts/startuptime.py (#98214)

    The "pyperf command" tool be used instead. Example:
    
        $ python3 -m pyperf command -- python3 -c pass
        .....................
        command: Mean +- std dev: 17.8 ms +- 0.4 ms
    
    pyperf also computes the standard deviation which gives an idea of
    the benchmark looks reliable or not.
    vstinner committed Oct 12, 2022
  5. signalmodule.c uses _PyErr_WriteUnraisableMsg() (#98217)

    Signal wakeup fd errors are now logged with
    _PyErr_WriteUnraisableMsg(), rather than PySys_WriteStderr() and
    PyErr_WriteUnraisable(), to pass the error message to
    sys.unraisablehook. By default, it's still written into stderr (unless
    sys.unraisablehook is overriden).
    vstinner committed Oct 12, 2022
  6. gh-97669: Fix test_tools reference leak (#98216)

    test_tools.test_sundry() now uses an unittest mock to prevent the
    logging module to register a real "atfork" function which kept the
    logging module dictionary alive. So the logging module can be
    properly unloaded. Previously, the logging module was loaded before
    test_sundry(), but it's no longer the case since recent test_tools
    sub-tests removals.
    vstinner committed Oct 12, 2022
  7. gh-97669: Create Tools/patchcheck/ directory (#98186)

    Move patchcheck.py, reindent.py and untabify.py scripts to a new
    Tools/patchcheck/ directory.
    vstinner committed Oct 12, 2022
  8. gh-96130: Rephrase use of "typecheck" verb for clarity (#98144)

    I'm sympathetic to the issue report, especially in case this helps
    clarify to new users that Python itself does not do type checking at runtime
    hauntsaninja committed Oct 12, 2022

Commits on Oct 11, 2022

  1. Fix some incorrect indentation around the main switch (#98177)

    The `}` marked with `/* End instructions */` is the end of the switch.
    There is another pair of `{}` around the switch, which is vestigial
    from ancient times when it was `for (;;) { switch (opcode) { ... } }`.
    All `DISPATCH` macro calls should be inside that pair.
    gvanrossum committed Oct 11, 2022
  2. gh-97982: Remove asciilib_count() (#98164)

    asciilib_count() is the same than ucs1lib_count(): the code is not
    specialized for ASCII strings, so it's not worth it to have a
    separated function. Remove asciilib_count() function.
    vstinner committed Oct 11, 2022
  3. Upgrade ccache-action to one using Node 16 (#98166)

    Github Actions has deprecated the use of Node 12, and will be turning it off by
    summer 2023.
    
    https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
    mdboom committed Oct 11, 2022
  4. gh-97669: Remove abitype.py and pep384_macrocheck.py (#98165)

    Remove abitype.py and pep384_macrocheck.py scripts of Tools/scripts/.
    vstinner committed Oct 11, 2022
  5. gh-71616: Add note to warn against general translation of saxutils.es…

    …cape() (#93450)
    
    * Add note to warn against general translation of saxutils.escape()
    
    * Use more direct wording
    slateny committed Oct 11, 2022
  6. gh-97669: Remove outdated example scripts (#97675) (#98167)

    Remove outdated example scripts of the Tools/scripts/ directory:
    
    * gprof2html.py
    * md5sum.py
    * nm2def.py
    * pathfix.py
    * win_add2path.py
    
    Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
    vstinner committed Oct 11, 2022

Commits on Oct 10, 2022

  1. gh-44098: Release the GIL during mmap on Unix (GH-98146)

    This seems pretty straightforward. The issue mentions other calls in mmapmodule that we could release the GIL on, but those are in methods where we'd need to be careful to ensure that something sensible happens if those are called concurrently. In prior art, note that #12073 released the GIL for munmap.  In a toy benchmark, I see the speedup you'd expect from doing this.
    
    Automerge-Triggered-By: GH:gvanrossum
    hauntsaninja committed Oct 10, 2022
Older