summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-91485: Doc: Using Python syntax to document builtin Python functions. ↵Julien Palard2022-10-151-65/+84
| | | | (GH-96579)
* gh-98251: Allow venv to pass along PYTHON* variables to pip and ensurepip ↵Steve Dower2022-10-143-13/+25
| | | | when they do not impact path resolution (GH-98259)
* Bpo-41246: IOCP Proactor avoid callback code duplication (#21399)Tony Solomonik2022-10-132-65/+20
| | | Use the same callback function for overlapped operations recv, recv_into, recvfrom, sendto, send, and sendfile inside IocpProactor.
* bpo-46364: Use sockets for stdin of asyncio only on AIX (#30596)Christoph Hamsen2022-10-133-4/+24
| | | | Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de> Co-authored-by: July Tikhonov <july.tikh@gmail.com>
* gh-98178: syslog() is not thread-safe on macOS (#98213)Victor Stinner2022-10-132-0/+9
| | | | | | 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.
* Mark all targets in `Doc/Makefile` as `PHONY` (GH-98189)Nikita Sobolev2022-10-121-3/+3
|
* gh-97982: Factorize PyUnicode_Count() and unicode_count() code (#98025)Nikita Sobolev2022-10-122-60/+36
| | | | Add unicode_count_impl() to factorize PyUnicode_Count() and unicode_count() code.
* gh-96265: Formatting changes for faq/general (#98129)Stanley2022-10-121-12/+18
| | | | | | | | | | | | | | | | | | | | * 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>
* tutorial: remove "with single quotes" (#98204)Jelle Zijlstra2022-10-121-1/+1
| | | | | | 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.
* gh-97669: Remove Tools/scripts/startuptime.py (#98214)Victor Stinner2022-10-121-22/+0
| | | | | | | | | | 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.
* signalmodule.c uses _PyErr_WriteUnraisableMsg() (#98217)Victor Stinner2022-10-121-7/+6
| | | | | | | 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).
* gh-97669: Fix test_tools reference leak (#98216)Victor Stinner2022-10-123-8/+14
| | | | | | | | 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.
* gh-97669: Create Tools/patchcheck/ directory (#98186)Victor Stinner2022-10-127-8/+5
| | | | Move patchcheck.py, reindent.py and untabify.py scripts to a new Tools/patchcheck/ directory.
* gh-65046: Link to logging cookbook from asyncio docs (#98207)Shantanu2022-10-122-1/+4
|
* Formatting fixes in contextlib docs (#98111)Stanley2022-10-121-11/+17
|
* gh-95276: Add callable entry to the glossary (#95738)MonadChains2022-10-121-0/+10
|
* gh-96130: Rephrase use of "typecheck" verb for clarity (#98144)Shantanu2022-10-121-10/+10
| | | | 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
* Fix some incorrect indentation around the main switch (#98177)Guido van Rossum2022-10-111-21/+20
| | | | | | 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.
* gh-98172: Fix formatting in `except*` docs (#98173)Jelle Zijlstra2022-10-111-12/+11
|
* gh-97982: Remove asciilib_count() (#98164)Victor Stinner2022-10-112-15/+11
| | | | | 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.
* gh-95756: Free and NULL-out code caches when needed (GH-98181)Ken Jin2022-10-112-0/+3
|
* gh-86404: Doc: Drop now unused make suspicious and rstlint. (GH-98179)Julien Palard2022-10-119-1082/+10
| | | | They have been replaced by [sphinx-lint](https://github.com/sphinx-contrib/sphinx-lint).
* Upgrade ccache-action to one using Node 16 (#98166)Michael Droettboom2022-10-111-4/+4
| | | | | | 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/
* gh-97669: Remove abitype.py and pep384_macrocheck.py (#98165)Victor Stinner2022-10-113-351/+0
| | | Remove abitype.py and pep384_macrocheck.py scripts of Tools/scripts/.
* gh-71616: Add note to warn against general translation of saxutils.escape() ↵Stanley2022-10-111-0/+5
| | | | | | | (#93450) * Add note to warn against general translation of saxutils.escape() * Use more direct wording
* gh-97669: Remove outdated example scripts (#97675) (#98167)Victor Stinner2022-10-1111-831/+2
| | | | | | | | | | | 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.
* gh-95756: Lazily created cached co_* attrs (GH-97791)Ken Jin2022-10-115-14/+82
|
* gh-44098: Release the GIL during mmap on Unix (GH-98146)Shantanu2022-10-102-3/+4
| | | | | 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
* gh-88452: Add a warning about non-portability of environments. (GH-98155)Vinay Sajip2022-10-101-0/+13
|
* gh-96821: Fix undefined behaviour in `audioop.c` (#96923)Matthias Görgens2022-10-102-12/+16
| | | | | | | | | | | * gh-96821: Fix undefined behaviour in `audioop.c` Left-shifting negative numbers is undefined behaviour. Fortunately, multiplication works just as well, is defined behaviour, and gets compiled to the same machine code as before by optimizing compilers. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-94808: Add coverage for bytesarray_setitem (#95802)Michael Droettboom2022-10-102-41/+85
|
* gh-83940: os docs: Improve wording for getenv/getenvb (#98113)Stanley2022-10-101-4/+4
|
* doc: remove a misleading statement. (GH-98093)Julien Palard2022-10-101-2/+2
|
* bpo-43564: preserve original exception in args of FTP URLError (#24938)Carl Meyer2022-10-102-1/+4
| | | | | | | * bpo-43564: preserve original error in args of FTP URLError * Add NEWS blurb Co-authored-by: Carl Meyer <carljm@instagram.com>
* gh-98083: Fix URLs in `README.rst` (#98082)Tiger2022-10-101-3/+3
|
* Fix types in buffer/memoryview docs (#98118)da-woods2022-10-102-2/+2
| | | | | | | | The definition of obj in the `Py_buffer` struct is as a PyObject* https://github.com/python/cpython/blob/ec091bd47e2f968b0d1631b9a8104283a7beeb1b/Include/pybuffer.h#L22 PyMemoryView_GET_BASE returns `.obj` - thus its return type should be a PyObject* (or at least a void*). It definitely doesn't return `Py_buffer`
* gh-56133: copyreg docs: Clarify function/constructor parameter (#95497)Stanley2022-10-101-9/+6
|
* Update whatsnew instructions for GitHub (#98124)Carl Meyer2022-10-091-2/+2
|
* gh-97841: Add methoddef for _filters_mutated (gh-98115)Dong-hee Na2022-10-092-4/+26
|
* Minor edits to the Descriptor HowTo Guide (GH-24901)Géry Ogam2022-10-091-6/+8
| | | Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* Fix link to Lifecycle of a Pull Request in CONTRIBUTING (#98102)Jacob Walls2022-10-081-1/+1
| | | | | | | * Fix link to Lifecycle of a Pull Request in CONTRIBUTING * Remove trailing backslash. Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* GH-94597: deprecate `SafeChildWatcher`, `FastChildWatcher` and ↵Kumar Aditya2022-10-087-38/+81
| | | | `MultiLoopChildWatcher` child watchers (#98089)
* Auto-cancel old builds when new commit pushed to branch (#98009)Hugo van Kemenade2022-10-084-0/+16
| | | | | | | | | | | * Auto-cancel old builds when new commit pushed to branch * Add a fallback Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> * Use the same group for all workflows. Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-95011: Migrate syslog module to Argument Clinic (GH-95012)Noam Cohen2022-10-084-72/+377
|
* gh-68686: Retire eptag ptag scripts (#98064)Joannah Nanjekye2022-10-084-112/+1
| | | | | | | | | * Retire eptag ptag scripts * 📜🤖 Added by blurb_it. * fix news entry error Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-97922: Run the GC only on eval breaker (#97920)Pablo Galindo Salgado2022-10-088-14/+74
|
* GitHub Workflows security hardening (#96492)Alex2022-10-081-0/+3
| | | | | | | | | | | * Update project-updater.yml Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com> * Update project-updater.yml repository-projects: write is not needed because a separate secrets.ADD_TO_PROJECT_PAT is used Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
* Add `@ezio-melotti` as codeowner for `.github/`. (#98079)Ezio Melotti2022-10-081-0/+3
|
* gh-97913 Docs: Add walrus operator to the index (#97921)Hugo van Kemenade2022-10-081-0/+6
| | | | | | | | | | | | | | * Add walrus operator to the index * Add named expression to the index Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com> * Fix indentation and add missing newline Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [doc] Fix broken links to C extensions accelerating stdlib modules (#96914)partev2022-10-081-3/+6
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>