Miss Islington (bot)
9cb30bb339
Move random selection recipes from itertools.rst to random.rst (GH-98369)
...
(cherry picked from commit 70732d8a4c )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-10-17 15:38:22 -07:00
Miss Islington (bot)
6c7f7ec819
gh-85525: Remove extra row in doc (GH-98337)
...
* remove extra row
* 📜 🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 5c9302d03a )
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
2022-10-17 15:08:10 -07:00
Miss Islington (bot)
f4a0b80250
gh-95914: Add What's New item describing PEP 670 changes (GH-98315)
...
(cherry picked from commit aafc53c0a6 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-17 12:25:18 -07:00
Miss Islington (bot)
211b8193ca
GH-91415: Mention alphabetical sort ordering in the Sorting HOWTO (GH-98336)
...
(cherry picked from commit ae19217867 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-10-16 12:41:41 -07:00
Vinay Sajip
f64e26c04e
[3.11] gh-98307: Add docstring and documentation for SysLogHandler.cr… (GH-98325)
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-16 18:45:59 +01:00
Miss Islington (bot)
e26c526fd4
gh-85299: Add note warning about entry point guard for asyncio example (GH-93457)
...
(cherry picked from commit 79fd6ccdbe )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-16 10:16:48 -07:00
Miss Islington (bot)
21fbf1631d
gh-97527: IDLE - fix buggy macosx patch (GH-98313)
...
GH-97530 fixed IDLE tests possibly crashing on a Mac without a GUI.
But it resulted in IDLE not starting in 3.10.8, 3.12.0a1, and
Microsoft Python 3.10.2288.0 when test/* is not installed.
After this patch, test.* is only imported when testing on Mac.
(cherry picked from commit 35fa5d5e7f )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-10-16 09:00:47 -07:00
Miss Islington (bot)
b5874fae0a
[3.11] gh-95731: Fix module docstring extraction in pygettext (GH-95732) ( #98281 )
...
gh-95731: Fix module docstring extraction in pygettext (GH-95732)
(cherry picked from commit 120b4ab2b6 )
Co-authored-by: Jakub Kuczys <me@jacken.men>
2022-10-15 21:15:17 -07:00
Miss Islington (bot)
a2ae35dfa4
[3.11] Improve speed. Reduce auxiliary memory to 16.6% of the main array. (GH-98294) (GH-98303)
2022-10-15 16:24:05 -05:00
Vinay Sajip
79c0adeb1d
[3.11] [doc] Update logging cookbook with an example of custom handli… (GH-98296)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-15 21:51:58 +01:00
Miss Islington (bot)
d3b57dc729
docs(typing): harmonize "See PEP x for more details" (GH-97927)
...
(cherry picked from commit 02389658a4 )
Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
2022-10-15 12:25:58 -07:00
Miss Islington (bot)
91bcd2161f
Upgrade ccache-action to one using Node 16 (GH-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/
(cherry picked from commit ad8e297b72 )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
2022-10-15 12:03:27 -07:00
Jelle Zijlstra
93d0d9cfdd
[3.11] gh-94808: Cover PyEval_GetFuncName (GH-98246). ( #98283 )
...
(cherry picked from commit f01b56c7bd )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-15 11:48:48 -07:00
Raymond Hettinger
099620b0ce
[3.11] Backport docstring improvement from 3.12 ( #98288 )
...
Backport docstring improvement from 3.12
2022-10-15 13:11:04 -05:00
Miss Islington (bot)
42511fc72d
Faster sieve() recipe (GH-98287)
...
(cherry picked from commit f4370318d6 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-10-15 10:52:45 -07:00
Miss Islington (bot)
c0083e6470
gh-98227: executionmodel.rst: except* can also bind names (GH-98256)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 146f168fbf )
Co-authored-by: BiscuitCandy <70342294+BiscuitCandy@users.noreply.github.com>
2022-10-15 09:12:18 -07:00
Miss Islington (bot)
4e78d9482a
gh-95971: Turn @writes_bytecode_files to skip when not running (GH-95972)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 07b5c4699e )
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
2022-10-15 08:22:38 -07:00
Miss Islington (bot)
232a988912
gh-85525: Indicate supported sound header formats (GH-21575)
...
* Indicate supported sound header formats
* modify file names
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 05c042e707 )
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
2022-10-15 08:09:20 -07:00
Miss Islington (bot)
42d536c1c7
gh-91485: Doc: Using Python syntax to document builtin Python functions. (GH-96579)
...
(cherry picked from commit 3c4cbd177f )
Co-authored-by: Julien Palard <julien@palard.fr>
2022-10-15 07:32:37 -07:00
Miss Islington (bot)
22ad9e5f3e
gh-98251: Allow venv to pass along PYTHON* variables to pip and ensurepip when they do not impact path resolution (GH-98259)
...
(cherry picked from commit 2fe44f728a )
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-10-14 09:24:23 -07:00
Miss Islington (bot)
595ef03c7c
bpo-46364: Use sockets for stdin of asyncio only on AIX (GH-30596)
...
Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de>
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
(cherry picked from commit c9ed0327a9 )
Co-authored-by: Christoph Hamsen <37963496+xopham@users.noreply.github.com>
2022-10-13 10:27:31 -07:00
Miss Islington (bot)
c7761bbc32
gh-98178: syslog() is not thread-safe on macOS (GH-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.
(cherry picked from commit d4b9166385 )
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-10-13 04:59:23 -07:00
Brandt Bucher
0a67f82eb1
[3.11] GH-93354: Fix PRECALL's adaptive backoff (GH-98011)
2022-10-12 16:04:47 -07:00
Miss Islington (bot)
450306ed67
gh-96265: Formatting changes for faq/general (GH-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>
(cherry picked from commit e9569ec43e )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-12 09:13:24 -07:00
Miss Islington (bot)
b2f037cce7
tutorial: remove "with single quotes" (GH-98204)
...
Closes GH-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.
(cherry picked from commit 5f8ca1b796 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-12 09:08:56 -07:00
Miss Islington (bot)
316590116a
gh-65046: Link to logging cookbook from asyncio docs (GH-98207)
...
(cherry picked from commit c39a0c3354 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-10-11 21:51:13 -07:00
Miss Islington (bot)
59ddbc4ab6
Formatting fixes in contextlib docs (GH-98111)
...
(cherry picked from commit 3b33c2010a )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-11 21:05:12 -07:00
Miss Islington (bot)
9e666bc640
gh-95276: Add callable entry to the glossary (GH-95738)
...
(cherry picked from commit e3bf125c81 )
Co-authored-by: MonadChains <monadchains@gmail.com>
2022-10-11 19:50:25 -07:00
Miss Islington (bot)
d22c35dfff
gh-96130: Rephrase use of "typecheck" verb for clarity (GH-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
(cherry picked from commit ed6344eed0 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-10-11 19:45:44 -07:00
Miss Islington (bot)
9b12084aca
gh-98172: Fix formatting in except* docs (GH-98173)
...
(cherry picked from commit 5ecf961640 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-11 09:22:04 -07:00
Miss Islington (bot)
9d44ca5183
Auto-cancel old builds when new commit pushed to branch (GH-98009)
...
* 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>
(cherry picked from commit 75751f4aa5 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-10-10 13:16:32 -07:00
Miss Islington (bot)
5c0d4c2619
[3.11] gh-88452: Add a warning about non-portability of environments. (GH-98155) (GH-98157)
2022-10-10 21:10:04 +01:00
Miss Islington (bot)
126929760a
ci: add GitHub token permissions (GH-92999)
...
(cherry picked from commit b96e20c1d9 )
Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
2022-10-10 12:37:37 -07:00
Miss Islington (bot)
fc14f1a80d
gh-83940: os docs: Improve wording for getenv/getenvb (GH-98113)
...
(cherry picked from commit 187e853690 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-10 07:01:05 -07:00
Miss Islington (bot)
a2f728038e
doc: remove a misleading statement. (GH-98093)
...
(cherry picked from commit 571e23d991 )
Co-authored-by: Julien Palard <julien@palard.fr>
2022-10-10 01:50:26 -07:00
Miss Islington (bot)
1d05b58e83
bpo-43564: preserve original exception in args of FTP URLError (GH-24938)
...
* bpo-43564: preserve original error in args of FTP URLError
* Add NEWS blurb
Co-authored-by: Carl Meyer <carljm@instagram.com>
(cherry picked from commit ad817cd5c4 )
Co-authored-by: Carl Meyer <carl@oddbird.net>
2022-10-09 22:09:12 -07:00
Miss Islington (bot)
21b13c24ba
gh-98083: Fix URLs in README.rst (GH-98082)
...
(cherry picked from commit fc342c62e0 )
Co-authored-by: Tiger <tnie@tuta.io>
2022-10-09 18:33:59 -07:00
Miss Islington (bot)
4172e09c3a
Fix types in buffer/memoryview docs (GH-98118)
...
The definition of obj in the `Py_buffer` struct is as a PyObject*
ec091bd47e/Include/pybuffer.hGH-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`
(cherry picked from commit c459fedf7c )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
2022-10-09 18:03:53 -07:00
Miss Islington (bot)
6211bb2cf8
gh-56133: copyreg docs: Clarify function/constructor parameter (GH-95497)
...
(cherry picked from commit 281a3f18cc )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-09 18:02:00 -07:00
Miss Islington (bot)
6554598236
Minor edits to the Descriptor HowTo Guide (GH-24901)
...
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
(cherry picked from commit 2d2e01aa4c )
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2022-10-08 19:03:25 -07:00
Miss Islington (bot)
afed448978
Fix link to Lifecycle of a Pull Request in CONTRIBUTING (GH-98102)
...
* Fix link to Lifecycle of a Pull Request in CONTRIBUTING
* Remove trailing backslash.
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 3378ebb933 )
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2022-10-08 15:19:48 -07:00
Serhiy Storchaka
f6e50b82f6
[3.11] Add more syslog tests (GH-97953). (GH-98096)
...
(cherry picked from commit cae7d1d7a7 )
2022-10-08 22:22:26 +03:00
Miss Islington (bot)
bdc1087724
Add @ezio-melotti as codeowner for .github/. (GH-98079)
...
(cherry picked from commit 531ffaa7cd )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-10-08 01:01:42 -07:00
Miss Islington (bot)
9828ccb63b
gh-97913 Docs: Add walrus operator to the index (GH-97921)
...
* 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>
(cherry picked from commit 296313002f )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-10-08 00:01:27 -07:00
Miss Islington (bot)
b5196faff3
gh-97822: Fix http.server documentation reference to test() function (GH-98027)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 6b485629d2 )
Co-authored-by: JasonYZ <yurenzhang2017@gmail.com>
2022-10-07 22:07:06 -07:00
Miss Islington (bot)
e493792612
gh-92886: make test_ast pass with -O (assertions off) (GH-98058)
...
-O does not strip docstrings.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 27ce45d8e1 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-10-07 22:02:38 -07:00
Miss Islington (bot)
72a23d8f06
gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
...
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 45f21472da )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-10-07 21:24:02 -07:00
Jelle Zijlstra
15732114b8
[3.11] gh-96288: Add a sentence to os.mkdir's docstring. (GH-96271). ( #98065 )
...
(cherry picked from commit 1523c9e9d4 )
Co-authored-by: Hagai Helman Tov <hagai.helman@gmail.com>
2022-10-07 21:00:00 -07:00
Jelle Zijlstra
52dab90500
[3.11] gh-96073: Fix installed tests by adding to Makefile.pre.in ( #98071 )
...
[3.11] Fix installed tests by adding to Makefile.pre.in
This was broken in #98045 but already fixed on main.
2022-10-07 20:59:18 -07:00
Miss Islington (bot)
8d6591b593
gh-57179: Add note on symlinks for os.walk (GH-94799)
...
(cherry picked from commit 0f498f1a95 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-07 20:00:04 -07:00