Miss Islington (bot)
20fec2c265
[3.11] gh-91810: ElementTree: Use text file's encoding by default in XML declaration (GH-91903) (GH-92663)
...
ElementTree method write() and function tostring() now use the text file's
encoding ("UTF-8" if not available) instead of locale encoding in XML
declaration when encoding="unicode" is specified.
(cherry picked from commit 707839b0fe
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-11 10:36:52 -07:00
Miss Islington (bot)
5ea8a93e1a
[3.11] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92659)
...
(cherry picked from commit 38486ca212
)
Co-authored-by: Mikhail Terekhov <termim@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-11 03:49:59 -07:00
Miss Islington (bot)
a9b5bc3274
Update numbers.rst (GH-31995)
...
(cherry picked from commit dde8a1668e
)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2022-05-11 00:36:24 -07:00
Miss Islington (bot)
b162f0875d
gh-91966 Document where key functions are applied in the bisect module (GH-92602) ( #92667 )
2022-05-11 02:06:10 -05:00
Miss Islington (bot)
5135b6ed73
gh-92550: Fix pathlib.Path.rglob() for empty pattern (GH-92604)
...
(cherry picked from commit 87f849c775
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-10 22:13:11 -07:00
Miss Islington (bot)
951cfc8e54
Fix inconsistent return type for statistics median_grouped() gh-92531 (GH-92533) ( #92656 )
2022-05-10 23:45:17 -05:00
Serhiy Storchaka
5197134c1c
Revert "gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)" (GH-92599)
...
This reverts commit a51baec9ce
.
2022-05-11 07:14:40 +03:00
Miss Islington (bot)
6a17cdebe9
gh-92619: Fix bug where the compiler duplicates exit blocks unnecessarily (GH-92620) (GH-92621)
...
(cherry picked from commit 7c6b7ade8d
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-05-10 22:01:17 +01:00
Miss Islington (bot)
6546af31ee
gh-91731: Fix typo in pymacro.h (GH-92618)
...
* Fix typo in pymacro.h
* Update Include/pymacro.h
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 4e6da502f4
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-05-10 06:24:11 -07:00
Miss Islington (bot)
635b62a376
[3.11] gh-76773: Update docs mentioning no-longer-supported Windows versions & features (GH-92529) (GH-92608)
...
(cherry picked from commit f1bbcba74f
)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-10 02:55:36 -07:00
Miss Islington (bot)
8a2b3edcdc
Add `__slots__` to `typing._NotIterable` (GH-92570)
...
(cherry picked from commit eef47d5bc7
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-10 02:45:17 -07:00
Miss Islington (bot)
e4fc347356
gh-92417: `zlib` docs, `binascii` docs: remove Python 2 compatibility notes (GH-92543) (GH-92607)
...
(cherry picked from commit 7c638e6405
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-10 12:29:59 +03:00
Miss Islington (bot)
c84f547d1d
[3.11] gh-92417: `unittest.mock` docs: remove references to Python <2.6 (GH-92539) (GH-92606)
...
(cherry picked from commit 6823ba4a9e
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-10 02:28:20 -07:00
Miss Islington (bot)
de3349019b
gh-92256: Improve Argument Clinic parser error messages (GH-92268)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 4bd07d1dbd
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-05-10 00:48:34 -07:00
Miss Islington (bot)
7540a432ce
gh-92261: Disallow iteration of Union (and other special forms) (GH-92262) (GH-92582)
...
(cherry picked from commit 4739997e14
)
Co-authored-by: Matthew Rahtz <matthew.rahtz@gmail.com>
2022-05-10 08:39:31 +03:00
Miss Islington (bot)
74c094d804
bpo-13553: Document tkinter.Tk args (GH-4786)
...
(cherry picked from commit c56e2bb994
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2022-05-09 21:17:57 -07:00
Miss Islington (bot)
2d38a2f5b8
gh-91928: Add what's new entry for datetime.UTC alias (GH-92567)
...
I merged this without a What's New entry to avoid merge conflicts, so here's the follow-up adding the entry.
@Kab1r do you mind reviewing?
Closes GH-91928
Automerge-Triggered-By: GH:pganssle
(cherry picked from commit a0a825c38a
)
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
2022-05-09 21:07:05 -07:00
Miss Islington (bot)
a51baec9ce
gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)
...
We could try to remedy this by taking a slice, but we then run into an issue where the empty string will match altsep on POSIX. That rabbit hole could keep getting deeper.
A proper fix for the original issue involves making pathlib's path normalisation more configurable - in this case we want to retain trailing slashes, but in other we might want to preserve `./` prefixes, or elide `../` segments when we're sure we won't encounter symlinks.
This reverts commit ea2f5bcda1
.
(cherry picked from commit dcdf250d2d
)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2022-05-09 17:39:43 -07:00
Miss Islington (bot)
a86229e824
bpo-46907: Update Windows installer to SQLite 3.38.4. (GH-92322)
...
(cherry picked from commit 22bddc864d
)
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-05-09 15:07:29 -07:00
Miss Islington (bot)
b7b7b4fcf8
Doc: Update py2app link. (GH-91585)
...
See: https://mail.python.org/archives/list/docs@python.org/thread/KDVFGNGGUGGPVRZT7WZYHHWXCRS2GEN7/
(cherry picked from commit b77a95f44a
)
Co-authored-by: Julien Palard <julien@palard.fr>
2022-05-09 14:25:33 -07:00
Miss Islington (bot)
57ff4984e6
gh-91731: Add macro compatibility for static_assert for old libcs (GH-92559) ( #92566 )
...
(cherry picked from commit f0614ca980
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-05-09 20:35:42 +01:00
Miss Islington (bot)
1e4cdcf97f
gh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew (GH-92552)
...
(cherry picked from commit be3cdd66c9
)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2022-05-09 07:18:37 -07:00
Miss Islington (bot)
2505e22d92
What's New in Python 3.11: move C API changes (GH-92390)
...
Move C API changes to the C API > Porting to Python 3.11 section.
(cherry picked from commit d8104d13cd
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-05-09 03:55:45 -07:00
Miss Islington (bot)
ea58fea818
Enhance PyConfig documentation (GH-92394)
...
(cherry picked from commit 7b9803f93f
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-05-09 03:51:11 -07:00
Miss Islington (bot)
5e2e9c4e74
gh-90005: Cleanup after GH-31698 (GH-91642)
...
(cherry picked from commit 269e726723
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-05-09 02:23:24 -07:00
Miss Islington (bot)
a9f1cba06e
CODEOWNERS: Add Erlend Aasland as sqlite3 code owner (GH-92535)
...
Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit 3edda031e4
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-05-09 01:31:44 -07:00
Miss Islington (bot)
2f46cf637f
bpo-38056: overhaul Error Handlers section in codecs documentation (GH-15732)
...
* Some handlers were wrongly described as text-encoding only, but actually they can also be used in text-decoding.
* Add more description to each handler.
* Add two REPL examples.
* Add indexes for Error Handler's name.
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 5bc2390229
)
Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
2022-05-08 20:13:45 -07:00
Miss Islington (bot)
cffa76d476
pdb docs: workaround for double semicolon in strings (GH-17011)
...
see https://github.com/gotcha/ipdb/issues/172
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 2888b1107f
)
Co-authored-by: Godefroid Chapelle <gotcha@bubblenet.be>
2022-05-08 16:36:37 -07:00
Miss Islington (bot)
574d7b8d7c
bpo-39229: fix formatting in library/functions.rst (GH-17857)
...
Missing reference of auditing event presents error when building translated documentation
(cherry picked from commit f298ba1f27
)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2022-05-08 16:34:01 -07:00
Miss Islington (bot)
b6da20fffa
gh-77521: Add link to builtin module names in modules tutorial (GH-92438)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 859250cc55
)
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
2022-05-08 12:45:14 -07:00
Miss Islington (bot)
4270b7927d
gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598) ( #92495 )
...
Do not spawn ProcessPool workers on demand when they spawn via fork.
This avoids potential deadlocks in the child processes due to forking from
a multithreaded process.
(cherry picked from commit ebb37fc3fd
)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2022-05-08 10:14:14 -07:00
Miss Islington (bot)
5917e71017
Use percentage over factor for 3.11 whatsnew performance (GH-92496)
...
(cherry picked from commit 9304f98558
)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2022-05-08 09:59:14 -07:00
Miss Islington (bot)
d6b83a3140
gh-80856: doc: reveal doctest directives (GH-92318)
...
* Doc: Reveal doctest directives.
* Fix whitespace.
Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 7b024e3a3f
)
Co-authored-by: Davide Rizzo <sorcio@gmail.com>
2022-05-08 09:33:11 -07:00
Miss Islington (bot)
8037fb708e
Fix the `versionadded` for asyncio.StreamWriter.start_tls() (GH-92378)
...
(cherry picked from commit 063e8ab72b
)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-05-08 09:04:29 -07:00
Miss Islington (bot)
7c6d649c2b
gh-92417: `logging` docs: Remove warning that only applies to Python <3.2 (GH-92425)
...
(cherry picked from commit 318c4e91ef
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-08 09:04:00 -07:00
Miss Islington (bot)
6d8fd3f608
`typing.Text`: tweak deprecation notice (GH-92405)
...
https://github.com/python/cpython/pull/92351/filesGH-r866869469
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit bdc99a830f
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-08 08:36:54 -07:00
Miss Islington (bot)
29f592e6fe
[3.11] gh-92417: `asyncio` docs: `asyncio.run()` is available on all supported Python versions (GH-92419) (GH-92462)
...
(cherry picked from commit f4e317b304
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:30:52 -07:00
Miss Islington (bot)
dfad113715
[3.11] gh-92417: `json` docs: `dict` is ordered on all supported Python versions (GH-92422) (GH-92464)
...
(cherry picked from commit bc098cfdb7
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:30:27 -07:00
Miss Islington (bot)
c35da32cde
[3.11] gh-92417: `doctest` docs: remove references to Python <3.6 (GH-92420) (GH-92467)
...
(cherry picked from commit 5639ea1ef9
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:29:58 -07:00
Miss Islington (bot)
be6c89cf26
[3.11] GH-92431: Fix footnotes in Doc/c-api/exceptions.rst (GH-92432) (GH-92469)
...
* Remove redundant footnote ref: the footnote has been removed
* Fix footnote ref to match footnote
* Convert footnotes into reST footnotes: will error if missing
(cherry picked from commit 788ef54bc9
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:28:56 -07:00
Miss Islington (bot)
eec14f42c1
[3.11] gh-92417: `stdtypes` docs: delete discussion of Python 2 differences (GH-92423) (GH-92472)
...
Given that 2.7 has now been end-of-life for two and a half years,
I don't think we need such a detailed explanation here anymore of
the differences between Python 2 and Python 3.
(cherry picked from commit 8efda1e7c6
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
2022-05-08 08:25:26 -07:00
Miss Islington (bot)
f71b305ddf
Update What's New in 3.11 faster cpython figures and contributors (GH-92401)
...
(cherry picked from commit b7380948f2
)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2022-05-08 08:20:34 -07:00
Miss Islington (bot)
c63c8ac238
bpo-45046: Support context managers in unittest (GH-28045)
...
Add methods enterContext() and enterClassContext() in TestCase.
Add method enterAsyncContext() in IsolatedAsyncioTestCase.
Add function enterModuleContext().
(cherry picked from commit 086c6b1b0f
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-08 08:12:19 -07:00
Miss Islington (bot)
a85bdd7e02
gh-92417: `typing` docs: `from __future__ import annotations` can be used in all supported Python versions (GH-92418)
...
(cherry picked from commit e5b4bd4d60
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-08 08:04:31 -07:00
Miss Islington (bot)
d0d22ca9fb
gh-92448: Update the documentation builder to render the GitHub issue. (GH-92449)
...
(cherry picked from commit 45e1721d10
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2022-05-08 06:05:01 -07:00
Miss Islington (bot)
14bd6df094
gh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (GH-92428)
...
(cherry picked from commit bd030b633f
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-07 21:12:52 -07:00
Miss Islington (bot)
565a5a3296
gh-92308: Add Pending Removal section to 3.11 What's New (GH-92309)
...
* gh-92308: Add Pending Removal section to 3.11 What's New
* Use compact list; drop attributions
* Add short text, and also missing PyUnicode_InternImmortal
* Fix formatting
* markup fix
* Update Doc/whatsnew/3.11.rst
Co-authored-by: Victor Stinner <vstinner@python.org>
* Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 0924b95f6e
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2022-05-07 21:04:04 -07:00
Pablo Galindo Salgado
e89c01eac7
[3.11] Add CI step to check changes in the exported ABI ( #92442 )
2022-05-08 04:32:17 +01:00
Pablo Galindo
21282da020
Add the 3.11 branch to the CI files
2022-05-08 04:02:02 +01:00
Pablo Galindo
6fbb56dc6b
Post 3.11.0b1
2022-05-08 03:37:35 +01:00