Ethan Furman
96218f774e
[3.11] gh-93100: [Enum] fix missing variable in global_str (GH-93107) (GH-93134)
...
(cherry picked from commit 046df59658
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-05-23 10:11:18 -07:00
Miss Islington (bot)
a509d2674a
gh-93010: InvalidHeaderError used but nonexistent (GH-93015)
...
* fix issue 93010
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 71abeb0895
)
Co-authored-by: oda-gitso <105083118+oda-gitso@users.noreply.github.com>
2022-05-23 09:57:12 -07:00
Miss Islington (bot)
fc31e2de3c
gh-92913: Fix typos in documentation (GH-93129)
...
(cherry picked from commit 6a6f823ea7
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-05-23 09:54:36 -07:00
Miss Islington (bot)
8c5739e425
gh-93005: Fixes launcher test when no Python install is available (GH-93007)
...
(cherry picked from commit 949dbf97ba
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-05-23 09:42:41 -07:00
Miss Islington (bot)
acc998a831
GH-93115: Fix version check in sqlite3 module constants test (GH-93116)
...
(cherry picked from commit d5f0dd1600
)
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2022-05-23 09:35:13 -07:00
Miss Islington (bot)
a29b1f8b4b
gh-90473: WASI: skip gethostname tests (GH-93092)
...
- WASI's ``gethostname()`` is a stub that always fails with OSError
``ENOTSUP``
- skip mailcap ``test`` if subprocess is not available
- WASI process_time clock does not work.
(cherry picked from commit 760ec8940a
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-05-23 08:21:45 -07:00
Miss Islington (bot)
9a2fe42b11
gh-89158: Add some REPL secondary prompt markers (GH-93073)
...
This fixes an issue on tutorial/classes.rst section 9.4 where the example "class Warehouse"
was truncated when pressing the >>> button to hide the prompts and output.
(cherry picked from commit 88f0d0c1e8
)
Co-authored-by: Nicolas Haller <nicolas@haller.im>
2022-05-22 22:18:09 -07:00
Miss Islington (bot)
83aa0d1822
gh-73137: Added sub-subsection headers for flags in re (GH-93000)
...
Fixes GH-73137
(cherry picked from commit b7a6610bc8
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-05-22 19:14:11 -07:00
Miss Islington (bot)
247e059de3
gh-92994: Clarify importlib "check" example (GH-92995)
...
Fixes GH-92994
(cherry picked from commit e39cd76561
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-05-22 19:10:57 -07:00
Miss Islington (bot)
25334ca082
binascii docs: strict_mode parameter is keyword-only (GH-93055)
...
See 35b98e38b6
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit ac718d357a
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-05-22 19:05:09 -07:00
Miss Islington (bot)
a86ad12399
termios docs: fix indentation (GH-93080)
...
(cherry picked from commit ea5918e932
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-05-22 16:11:36 -07:00
Miss Islington (bot)
748c83d96d
Clean up the sqlite3 tests (GH-93056)
...
Remove helper managed_connect(). Use memory_database() or
contextlib.closing() + addCleanup(unlink) instead.
(cherry picked from commit e5d8dbdd30
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-21 09:37:04 -07:00
Miss Islington (bot)
09c3dff3ba
gh-91362: reword pickle docs to account for nested classes (GH-92429)
...
Fixes GH-91362
(cherry picked from commit f9d6c59917
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-05-21 08:08:59 -07:00
Miss Islington (bot)
76b6ed17ea
Improve tests for opening Sqlite by URI (GH-93047)
...
* Test with with escaped non-ascii characters
* Test read-only open of existing DB.
(cherry picked from commit 4e2b664892
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-21 08:05:13 -07:00
Dong-hee Na
dd923c5725
[3.11] GH-92898: Make _Py_Cast C++ version compatible with cast operator (gh-92951) (gh-93049)
2022-05-21 23:52:45 +09:00
Serhiy Storchaka
d9a48d2b41
[3.11] gh-93044: No longer convert the database argument of sqlite3.connect() to bytes (GH-93046) (GH-93048)
...
Just pass it to the factory as is.
(cherry picked from commit 14c0d33016
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-21 16:53:58 +03:00
Miss Islington (bot)
f2aeb3f6f7
gh-71223: Improve rendering of some references in the docs (GH-93041)
...
For example, instead of "eval()uated" (link from "eval()")
show "evaluated" (link from the whole word).
(cherry picked from commit 7f835923c1
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-21 00:49:36 -07:00
Miss Islington (bot)
b97e28f1c2
gh-93019: Fix markup in zipfile.rst (GH-93025)
...
Fixes GH-93019
(cherry picked from commit 2fadde7e66
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-05-20 21:52:32 -07:00
Miss Islington (bot)
b52e44d933
Take advantage of math.comb() in the nth_combination() recipe (GH-93027) ( #93032 )
2022-05-20 18:34:30 -05:00
Miss Islington (bot)
61dfe37429
[3.11] gh-72073: Add Windows case in pathlib.rename (GH-93002) (GH-93028)
...
GH-72073
https://docs.python.org/3.12/library/pathlib.htmlGH-pathlib.Path.rename
(cherry picked from commit f51ed04c66
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Automerge-Triggered-By: GH:brettcannon
2022-05-20 15:42:28 -07:00
Miss Islington (bot)
24223ec82a
gh-92611: Clarify planned removal version in PEP 594-deprecated modules (GH-92793) (GH-93026)
...
As discussed in GH-92611 and GH-92564 and as a followup to PR GH-92612 , this 3.11+ only PR uses the proper `deprecated-removed` role for the modules deprecated by PEP 593 (PEP-594) to clearly indicate to users that a removal version is planned and what it is, so they can prepare accordingly or voice any unanticipated impacts.
Related to GH-92792 ; if we decide to backport that PR, the upgrade to using `deprecated-removed` on those functions can be moved to this one.
(cherry picked from commit 31fa41ed68
)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-05-20 15:33:12 -07:00
Miss Islington (bot)
6a3a6ba7a2
gh-91860: documentation for typing.dataclass_transform (GH-92768)
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit f20a6a54fb
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-05-20 08:01:44 -07:00
Miss Islington (bot)
6ec050f633
gh-91922: Fix sqlite connection on nonstardard locales and paths (GH-92926)
...
(cherry picked from commit d853758092
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-20 02:42:48 -07:00
Miss Islington (bot)
6814ab7907
Doc: add missing manpage and title references in tkinter docs (GH-29008)
...
- add bind(3tk) manpage markup
- add Tcl/Tk book reference markup
(cherry picked from commit 0e12781ad9
)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2022-05-20 01:34:21 -07:00
Miss Islington (bot)
a2ec09b7f5
gh-92817: Fix precedence of options to py.exe launcher (GH-92988)
...
(cherry picked from commit 73473fdeac
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-05-19 16:10:38 -07:00
Miss Islington (bot)
76fe10a89a
gh-92984: Explicitly disable incremental linking for Windows Release and PGO builds (GH-92985)
...
(cherry picked from commit 38feffa09c
)
Co-authored-by: David Machaj <46852402+dmachaj@users.noreply.github.com>
2022-05-19 15:52:22 -07:00
Miss Islington (bot)
4eb2f40756
gh-92913: Clarify changes to PyInitConfig.module_search_paths[_set] fields (GH-92980)
...
(cherry picked from commit 403d16fa28
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-05-19 13:13:15 -07:00
Miss Islington (bot)
57d7ddd607
bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498) (GH-92978)
...
(cherry picked from commit 8db2b3b687
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-05-19 20:03:06 +02:00
Miss Islington (bot)
0f1748d66e
gh-78630: Drop invalid HP aCC compiler switch -fPIC on HP-UX (GH-8847)
...
At compile time, '+z' is already properly used with HP aCC, and shared
libraries are correctly linked with '+b'. The '-fPIC' switch can safely be
dropped.
(cherry picked from commit 09be18a73d
)
Co-authored-by: Michael Osipov <michael.osipov@siemens.com>
2022-05-19 09:51:08 -07:00
Miss Islington (bot)
37d60c0255
gh-92417: `importlib` docs: remove references to unsupported Python versions (GH-92424) (GH-92979)
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 70aa1b9b91
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-19 18:11:25 +02:00
Miss Islington (bot)
27302ae2df
bpo-46879: Fix incorrect sphinx object names in doc (GH-31615) (GH-92974)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 2cdd57f119
)
Co-authored-by: Martin Fischer <martin@push-f.com>
2022-05-19 17:56:59 +02:00
Miss Islington (bot)
de97d8229c
gh-92417: `subprocess` docs: remove note on compatibility with Python <3.5 (GH-92538) (GH-92972)
...
(cherry picked from commit 84b86000e2
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-19 17:56:04 +02:00
Miss Islington (bot)
02fe22576e
gh-92417: `fractions`, `decimal`: Improve docs for alternative constructor methods (GH-92421) (GH-92970)
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 090df844ea
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-19 17:45:12 +02:00
Miss Islington (bot)
a2d6e6c206
gh-92417: `socket` docs: remove references to Python <3.3 (GH-92544) (GH-92968)
...
(cherry picked from commit 639b62c9c4
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-19 17:42:07 +02:00
Miss Islington (bot)
4d1e243fca
bpo-45393: help() on operator precedence has misleading entries (GH-31246) (GH-92965)
...
(cherry picked from commit fb082c2fc5
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2022-05-19 17:40:49 +02:00
Miss Islington (bot)
54653b5005
gh-92417: Update docs and examples of doctest.IGNORE_EXCEPTION_DETAIL for Py>=3 (GH-92502) (GH-92962)
...
(cherry picked from commit 97b9c1096f
)
2022-05-19 17:19:34 +02:00
Miss Islington (bot)
71cdf6a38a
gh-92675: venv: Fix ensure_directories() to again accept a Path for env_dir (GH-92676)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 30deeac649
)
Co-authored-by: David Foster <david@dafoster.net>
2022-05-19 08:17:28 -07:00
Miss Islington (bot)
7afccd34a6
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
...
(cherry picked from commit 137fd3d88a
)
Co-authored-by: Christian Heimes <christian@python.org>
2022-05-19 08:05:52 -07:00
Miss Islington (bot)
611d43c2a4
gh-91491: Complete Whats New in 3.11 for typing (GH-92708)
...
Fixes GH-91491
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 6b51773afd
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-05-19 07:25:50 -07:00
Miss Islington (bot)
ad2363d54c
gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX (GH-92718)
...
(cherry picked from commit 654032ac5f
)
Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
2022-05-19 02:50:39 -07:00
Miss Islington (bot)
17a62d1e59
Doc: amend ssl.PROTOCOL_SSLv2 and ssl.PROTOCOL_SSLv3 wording (GH-92634)
...
(cherry picked from commit 41638967a0
)
Co-authored-by: Jan Brasna <1784648+janbrasna@users.noreply.github.com>
2022-05-19 02:37:57 -07:00
Miss Islington (bot)
482e334daf
Include ``asyncio.Barrier`` in 3.11 Whats New (GH-92927)
...
(cherry picked from commit 60ee61571a
)
Co-authored-by: Duprat <yduprat@gmail.com>
2022-05-19 01:59:49 -07:00
Miss Islington (bot)
aa55985aa8
gh-87901: Remove the encoding argument from os.popen (GH-92836)
...
(cherry picked from commit 96f65835f8
)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2022-05-18 20:12:47 -07:00
Miss Islington (bot)
849963598f
gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (GH-92814)
...
(cherry picked from commit f2d994da10
)
Co-authored-by: 180909 <734461790@qq.com>
2022-05-18 14:25:25 -07:00
Miss Islington (bot)
65ebd923b3
gh-92780: Improve sqlite3.Connection.create_collation docs (GH-92790)
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 7ee19e2715
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-05-18 04:58:57 -07:00
Miss Islington (bot)
fad72d0e36
gh-91755: Document Py_IncRef and Py_DecRef as C functions (GH-91805)
...
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 58a3d28039
)
Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
2022-05-18 02:00:22 -07:00
Miss Islington (bot)
9a61afec20
bpo-40838: document `getdoc`, `getmodule`, `getsourcefile` in `inspect` returns `None` (GH-30575)
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit b86d783a4e
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-05-17 18:41:55 -07:00
Miss Islington (bot)
36da1a77c6
gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)
...
(cherry picked from commit 33880b4b1c
)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-05-17 15:59:29 -07:00
Miss Islington (bot)
58088a544c
gh-89898: Fix test_threading.test_args_argument() (GH-92885)
...
Join the thread to not leak threads running in the background to the
next test.
Fix the following warning on the "AMD64 FreeBSD Shared 3.11"
buildbot:
test_args_argument (test.test_threading.ThreadTests.test_args_argument) ...
Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2)
Warning -- Dangling thread: <_MainThread(MainThread, started 35026161664)>
Warning -- Dangling thread: <Thread(Thread-134 (<lambda>), started 35314998016)>
ok
(cherry picked from commit 970efae274
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-05-17 15:45:56 -07:00
Miss Islington (bot)
1df455042d
gh-89653: PEP 670: Fix PyUnicode_READ() cast (GH-92872)
...
_Py_CAST() cannot be used with a constant type: use _Py_STATIC_CAST()
instead.
(cherry picked from commit e6fd7992a9
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-05-17 10:45:55 -07:00