Commit graph

111940 commits

Author SHA1 Message Date
Miss Islington (bot)
eee8b99dc3
gh-97928: Fix handling options starting with "-" in tkinter.Text.count() (GH-98436)
Previously they were silently ignored. Now they are errors.
(cherry picked from commit e4ec8de6fa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-10-19 02:57:18 -07:00
Miss Islington (bot)
d0ed05c018
gh-97928: Add tests for tkinter.Text.count() (GH-98269)
(cherry picked from commit 1b684c8f5f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-10-18 23:40:40 -07:00
Miss Islington (bot)
ce87ab4dc5
[3.10] gh-93858: Prevent error when activating venv in nested fish instances (GH-93931) (GH-98403)
Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
2022-10-18 16:39:06 +01:00
Miss Islington (bot)
676cdea18f
[3.10] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98399) 2022-10-18 16:36:23 +01:00
C.A.M. Gerlach
b2db1c2080
[3.10] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98373)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>.
(cherry picked from commit fa2d43e518)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-10-18 01:49:47 +02:00
Miss Islington (bot)
3adf23471e
gh-98174: Handle EPROTOTYPE under macOS in test_sendfile_fallback_close_peer_in_the_middle_of_receiving (GH-98316)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
(cherry picked from commit 3e82ad05b1)

Co-authored-by: fancidev <fancidev@gmail.com>
2022-10-17 09:13:37 -07:00
Miss Islington (bot)
26307384ff
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:13:28 -07:00
Miss Islington (bot)
928b5f1bde
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 08:33:33 -07:00
Jelle Zijlstra
8a1f1cbe1a
[3.10] docs(typing): harmonize "See PEP x for more details" (GH-97927). (#98293)
(cherry picked from commit 02389658a4)

Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
2022-10-15 21:08:46 -07:00
Vinay Sajip
7b604d83d2
[3.10] [doc] Update logging cookbook with an example of custom handli… (GH-98299)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-15 21:59:13 +01:00
Miss Islington (bot)
146232f8af
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:40:43 -07:00
Miss Islington (bot)
84a26e114e
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 08:33:19 -07:00
Miss Islington (bot)
c9da063e32
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:22:19 -07:00
Miss Islington (bot)
fa9f65ef58
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:14 -07:00
Miss Islington (bot)
c7662420d6
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 05:05:18 -07:00
Julien Palard
a0c11529f3
[3.10] gh-86404: Doc CI: Disable suspicious checks. (GH-26575) (GH-98221)
gh-86404: Doc CI: Disable suspicious checks.
2022-10-12 21:26:27 +02:00
Miss Islington (bot)
258c440b47
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:12:14 -07:00
Miss Islington (bot)
2ed28a69b5
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:07:49 -07:00
Miss Islington (bot)
bd73110959
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:50:15 -07:00
Miss Islington (bot)
f6abb332a2
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:06:40 -07:00
Miss Islington (bot)
f94e6b4c42
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:49:23 -07:00
Miss Islington (bot)
48447d44ed
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:48:39 -07:00
Pablo Galindo
af63fa0dcd
Post 3.10.8 2022-10-11 18:27:10 +01:00
Pablo Galindo
aaaf517424
Python 3.10.8 2022-10-11 12:21:44 +01:00
Ezio Melotti
428bd028b3
[3.10] Auto-cancel old builds when new commit pushed to branch (GH-98009) (#98163)
* 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>

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-10-10 22:26:38 +02:00
Miss Islington (bot)
bf6b52ebad
[3.10] gh-88452: Add a warning about non-portability of environments. (GH-98155) (GH-98156) 2022-10-10 21:09:27 +01:00
Ezio Melotti
64ce2cba98
[3.10] ci: add GitHub token permissions (GH-92999) (#98161)
* ci: add GitHub token permissions (#92999)

(cherry picked from commit b96e20c1d9)

* [3.10] ci: add GitHub token permissions (GH-92999).
(cherry picked from commit b96e20c1d9)

Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>

Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
2022-10-10 21:46:09 +02:00
Miss Islington (bot)
de745870e6
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:17 -07:00
Miss Islington (bot)
8827b95e80
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:17 -07:00
Senthil Kumaran
1ae7abf6b2
[3.10] bpo-43564: preserve original exception in args of FTP URLError (GH-24938) (#98138)
* 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>

Co-authored-by: Carl Meyer <carl@oddbird.net>
2022-10-09 23:36:51 -07:00
Miss Islington (bot)
ac0a19b62a
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:34:53 -07:00
Miss Islington (bot)
03ea515f33
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:02:49 -07:00
Nikita Sobolev
ccb56804fd
[3.10] gh-94808: Cover PyObject_PyBytes case with custom __bytes__ method (GH-96610) (#98121)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>.
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>

(cherry picked from commit e39ae6bef2)
2022-10-09 07:02:39 -07:00
Serhiy Storchaka
4d7d91f941
[3.10] Add more syslog tests (GH-97953). (GH-98101)
(cherry picked from commit cae7d1d7a7)
2022-10-09 14:21:10 +03:00
Miss Islington (bot)
820ef62833
[3.10] Minor edits to the Descriptor HowTo Guide (GH-24901) (GH-98114) 2022-10-08 21:16:10 -05:00
Miss Islington (bot)
c86ee93d75
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:18:44 -07:00
Miss Islington (bot)
15a11a69e0
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:12:01 -07:00
Miss Islington (bot)
a2ce21f763
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:03:33 -07:00
Miss Islington (bot)
786fde5d70
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 23:57:31 -07:00
Miss Islington (bot)
225bee75e3
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:45 -07:00
Miss Islington (bot)
8d40fbe48b
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:07:09 -07:00
Jelle Zijlstra
2090eeb46d
[3.10] gh-96288: Add a sentence to os.mkdir's docstring. (GH-96271). (#98066)
(cherry picked from commit 1523c9e9d4)

Co-authored-by: Hagai Helman Tov <hagai.helman@gmail.com>
2022-10-07 20:59:48 -07:00
Jelle Zijlstra
f50e3a7fea
[3.10] gh-96073: Fix installed tests by adding to Makefile.pre.in (#98072)
This was broken in #98045 but already fixed on main.
2022-10-07 20:59:10 -07:00
Miss Islington (bot)
1818235f40
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:15:08 -07:00
Miss Islington (bot)
1a31799d16
gh-61105: Add default param, note on using cookiejar subclass (GH-95427)
(cherry picked from commit 5eaf4d6101)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-07 19:00:35 -07:00
Miss Islington (bot)
02394400f3
[3.10] gh-91708: Revert params note in urllib.parse.urlparse table (GH-96699) (#98053)
Revert params note in urllib.parse.urlparse table
(cherry picked from commit eed80458e8)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-07 16:02:43 -07:00
Miss Islington (bot)
6f40e2fb93
[3.10] gh-94808: Cover %p in PyUnicode_FromFormat (GH-96677) (#98032)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>

(cherry picked from commit 72c166add8)
2022-10-07 15:41:06 -07:00
Miss Islington (bot)
8c81d330b9
gh-96073: fix backticks in NEWS entry (GH-98056)
Automerge-Triggered-By: GH:JelleZijlstra
(cherry picked from commit 0f111f53c1)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-07 15:38:35 -07:00
Miss Islington (bot)
90f2c7992f
Add a warning message about PyOS_snprintf (GH-95993)
(cherry picked from commit c7b2204996)

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
2022-10-07 13:36:21 -07:00
Miss Islington (bot)
a3a3701fec
GH-96073: Fix wild replacement in inspect.formatannotation (GH-96074)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit d5fea01d9d)

Co-authored-by: Anh71me <iyumelive@gmail.com>
2022-10-07 12:56:29 -07:00