]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sun, 3 Jul 2022 17:20:48 +0000 (10:20 -0700)]
IDLE doc: Tweek RESTART and Windows console start (GH-94530)
(cherry picked from commit
39c29f753e6d6f390dce5a36613c1e03f43d28ea )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 1 Jul 2022 16:41:24 +0000 (09:41 -0700)]
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416) (GH-94492)
(cherry picked from commit
80aaeabb8bd1e6b49598a7e23e0f8d99b3fcecaf )
Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Miss Islington (bot) [Fri, 1 Jul 2022 16:22:02 +0000 (09:22 -0700)]
gh-75372: Specify major version in README for installation (GH-92759) (GH-94487)
(cherry picked from commit
3abda7a38a2a6803d4dbf70c6ae097ad5b59c58d )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 1 Jul 2022 16:14:39 +0000 (09:14 -0700)]
Update code sample when importing modules in queue doc (GH-94244) (GH-94490)
In the queue documentation, the code snippet shows the import to be not PEP 8 compliant.
Since people typically copy-paste from such code samples, I think it's important to show best-practices here.
(cherry picked from commit
ad55147c1d5dbfc23d2ec4554f5e82c18984158c )
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Jason R. Coombs [Fri, 1 Jul 2022 15:32:56 +0000 (11:32 -0400)]
[3.11] gh-93975: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip (GH-93959) (GH-94003)
This change does three things:
1. Extract a function for trapping output in subprocesses.
2. Emit both stdout and stderr when encountering an error.
3. Apply the change to `ensurepip._uninstall` check.
(cherry picked from commit
6066f450b91f1cbebf33a245c14e660052ccd90a )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Mark Shannon [Fri, 1 Jul 2022 14:44:30 +0000 (15:44 +0100)]
[3.11] GH-94438: Backport GH-94444 (#94486)
* Account for NULLs on evaluation stack when jumping lines.
Miss Islington (bot) [Fri, 1 Jul 2022 10:17:38 +0000 (03:17 -0700)]
gh-84461: Tool/wasm/python.html: Add subresource integrity hashes (GH-93953)
(cherry picked from commit
1df9449db24f16c9c96bdd7dc283a5062bca68e6 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Fri, 1 Jul 2022 10:16:25 +0000 (03:16 -0700)]
gh-84461: Improve WebAssembly in-browser demo (GH-91879)
* Buffer standard input line-by-line
* Add non-root .editorconfig for JS & HTML indent
* Add support for clearing REPL with CTRL+L
* Support unicode in stdout and stderr
* Remove \r\n normalization
* Note that local .editorconfig file extends root
* Only normalize lone \r characters (convert to \n)
* Skip non-printable characters in buffered input
* Fix Safari bug (regex lookbehind not supported)
Co-authored-by: Christian Heimes <christian@python.org>
(cherry picked from commit
a8e333d79aa639417e496181bcbad2cb801a7a56 )
Co-authored-by: Trey Hunner <trey@treyhunner.com>
Mark Shannon [Thu, 30 Jun 2022 21:03:37 +0000 (22:03 +0100)]
[3.11] GH-93354: Use exponential backoff to avoid excessive specialization attempts (GH-93355) (GH-93379)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Thu, 30 Jun 2022 18:23:14 +0000 (11:23 -0700)]
multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)
(cherry picked from commit
62bb7a3b50150495e215d7bd32f633eef81b3bc2 )
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Miss Islington (bot) [Thu, 30 Jun 2022 18:04:42 +0000 (11:04 -0700)]
gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (GH-94050) (GH-94460)
The inspect version was not working with unittest.mock.AsyncMock.
The fix introduces special-casing of AsyncMock in
`inspect.iscoroutinefunction` equivalent to the one
performed in `asyncio.iscoroutinefunction`.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc )
Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net>
Miss Islington (bot) [Thu, 30 Jun 2022 18:02:42 +0000 (11:02 -0700)]
GH-94398: TaskGroup: Fail create_task() during shutdown (GH-94400) (GH-94463)
Once the task group is shutting down, it should not be possible to create a new task.
Here "shutting down" means `self._aborting` is set, indicating that at least one task
has failed and we have cancelled all others.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
594c3699492bfb007650538726d953cbed55de04 )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Thu, 30 Jun 2022 17:15:00 +0000 (10:15 -0700)]
xml.dom.minidom docs: fix typo (GH-93437)
(cherry picked from commit
639e35108bc8b2b880225862d3571277ad57648b )
Co-authored-by: Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>
Miss Islington (bot) [Thu, 30 Jun 2022 16:29:46 +0000 (09:29 -0700)]
gh-93491: Fix PEP 11 tier detection for FreeBSD (GH-94441)
(cherry picked from commit
67d208fbee119ed1bca0765a9aa779e31fea98b3 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Thu, 30 Jun 2022 16:27:15 +0000 (09:27 -0700)]
GH-90908: Document asyncio.TaskGroup (GH-94359) (GH-94456)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit
b6ec6d4041a5d937f0b63764a329582af4948a3c )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Thu, 30 Jun 2022 16:11:05 +0000 (09:11 -0700)]
gh-91719: Reload opcode on unknown error so that C can optimize the dispatching in ceval.c (GH-94364) (#94453)
(cherry picked from commit
ea39b77de9fa25b447d0b4148f75f351076e890a )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Irit Katriel [Thu, 30 Jun 2022 15:18:30 +0000 (16:18 +0100)]
[3.11] gh-89038: [doc] update dis.findlinestarts documentation for changes related to PEP-626 (GH-94247) (GH-94450)
(cherry picked from commit
d68f2d27bbf85f3573a08fc7554889e1733a30f0 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Thu, 30 Jun 2022 14:53:20 +0000 (07:53 -0700)]
GH-94329: Don't raise on excessive stack consumption (GH-94421) (GH-94446)
(cherry picked from commit
b152bf448b321e3a4c0a7280e0b608840f5ac661 )
Irit Katriel [Thu, 30 Jun 2022 14:30:12 +0000 (15:30 +0100)]
gh-94332: make it safe to call assemble_free when assemble_init has not been called (GH-94389) (GH-94442)
(cherry picked from commit
be82d26570343dafc8a89be5a1a0e2f58d51a904 )
Miss Islington (bot) [Thu, 30 Jun 2022 09:59:33 +0000 (02:59 -0700)]
gh-92336: linecache.getline should not raise exceptions on decoding errors (GH-94410)
(cherry picked from commit
21cbdae90ffdac047d27d1b83a5442fabcf89f7c )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Thu, 30 Jun 2022 09:47:16 +0000 (02:47 -0700)]
[3.11] GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized (GH-93917) (GH-93969)
(cherry picked from commit
b1ae4af5e82e7275cebcfb383690b816a388a785 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
Miss Islington (bot) [Wed, 29 Jun 2022 20:53:42 +0000 (13:53 -0700)]
bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409)
(cherry picked from commit
68fb03249f3b17146db42b00a75718b823a2280c )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Wed, 29 Jun 2022 17:22:11 +0000 (10:22 -0700)]
Docs: Update SyntaxError message in REPL example for list comprehension (GH-93901) (GH-94425)
(cherry picked from commit
22b783aba05bcc3a21af9e5ae308ffbb98ff6a12 )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Christian Heimes [Wed, 29 Jun 2022 14:22:41 +0000 (16:22 +0200)]
[3.11] gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413) (GH-94415)
``PY_STDMODULE_CFLAGS`` may contain include directories with system
headers. This can break compiling with built-in libmpdec.
Co-authored-by: Christian Heimes <christian@python.org>
Christian Heimes [Wed, 29 Jun 2022 12:53:56 +0000 (14:53 +0200)]
[3.11] GH-93516: Drop broken assert, fixes GH-93769 (GH-94411)
Christian Heimes [Wed, 29 Jun 2022 11:51:25 +0000 (13:51 +0200)]
[3.11] gh-94026: Buffer regrtest worker stdout in temporary file (GH-94253) (GH-94408)
Co-authored-by: Victor Stinner <vstinner@python.org>.
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Wed, 29 Jun 2022 08:10:58 +0000 (01:10 -0700)]
gh-94404: makesetup: use correct CFLAGS and macOS workaround (GH-94405)
``makesetup`` now works around an issue with sed on macOS and uses correct
CFLAGS for object files that end up in a shared extension.
(cherry picked from commit
5150cbcd6821c0cf79b81cfc8780087bbc6985da )
Co-authored-by: Christian Heimes <christian@python.org>
Mark Shannon [Tue, 28 Jun 2022 15:30:22 +0000 (16:30 +0100)]
[3.11] GH-93516: Backport GH-93769 (GH-94231)
* Store offset of first traceable instruction to avoid having to recompute it all the time when tracing.
Miss Islington (bot) [Tue, 28 Jun 2022 13:54:30 +0000 (06:54 -0700)]
gh-88116: Avoid undefined behavior when decoding varints in code objects (GH-94375)
(cherry picked from commit
c485ec014ce174bb3f5ae948151dc40e0f6d5f7f )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Pablo Galindo Salgado [Tue, 28 Jun 2022 13:33:08 +0000 (14:33 +0100)]
[3.11] Backport ABI regeneration script (#94376)
Miss Islington (bot) [Tue, 28 Jun 2022 10:29:38 +0000 (03:29 -0700)]
gh-61585: Clarify import scope in modules tutorial (GH-93455) (GH-94373)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
(cherry picked from commit
4b854b746650214eddadb2440efd9e1544d08ccb )
Miss Islington (bot) [Tue, 28 Jun 2022 10:11:36 +0000 (03:11 -0700)]
[3.11] gh-86404: [doc] Fix missing space in idle documentation. (GH-94366) (GH-94369)
This should have been spotted by sphinx-lint, tracked here:
https://github.com/sphinx-contrib/sphinx-lint/issues/39
(cherry picked from commit
bc7f6fcdf14da32a8f7816ace800a6a91dc1554f )
Co-authored-by: Julien Palard <julien@palard.fr>
Automerge-Triggered-By: GH:JulienPalard
Miss Islington (bot) [Tue, 28 Jun 2022 10:10:42 +0000 (03:10 -0700)]
gh-91860: Add docs for typing.dataclass_transform field specifier params (GH-94354) (GH-94372)
(cherry picked from commit
81ac9ac4921c57c8f31464fed575ea0cfe84df70 )
Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Miss Islington (bot) [Tue, 28 Jun 2022 07:59:57 +0000 (00:59 -0700)]
gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347)
Three test cases were failing on FreeBSD with latest OpenSSL.
(cherry picked from commit
1bc86c26253befa006c0f52eebb6ed633c7d1e5c )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Mon, 27 Jun 2022 23:24:08 +0000 (16:24 -0700)]
gh-82006: IDLE doc improvements (GH-94349)
0. Update text start and stop conditions.
1. Title-case sections but not subsections.
2. Edit Shell Window sections: title, execute, restart.
(cherry picked from commit
e6391e08bff775a3c10707fd2cfce6963e6ae429 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 27 Jun 2022 18:51:45 +0000 (11:51 -0700)]
gh-94315: Check for DAC override capability (GH-94316)
``os.geteuid() == 0`` is not a reliable check whether the current user
has the capability to bypass permission checks. Tests now probe for DAC
override.
(cherry picked from commit
7e0d98ecb3f049841de9854e7a3eca3e2638e4b2 )
Co-authored-by: Christian Heimes <christian@python.org>
Christian Heimes [Mon, 27 Jun 2022 16:33:01 +0000 (18:33 +0200)]
[3.11] gh-90473: Reduce recursion limit on WASI even further (GH-94333) (GH-94334)
Co-authored-by: Christian Heimes <christian@python.org>
Christian Heimes [Mon, 27 Jun 2022 07:23:04 +0000 (09:23 +0200)]
[3.11] gh-90005: Rename MODULE_EGG variable to MODULE_EGG_STATE (GH-94301) (GH-94317)
Co-authored-by: Christian Heimes <christian@python.org>
Terry Jan Reedy [Mon, 27 Jun 2022 03:54:10 +0000 (23:54 -0400)]
[3.11] gh-84623: Remove unused imports in stdlib (#94313)
#93773
Backport only for 2 idlelib files.
Cherrypicked from
259dd71c32a42708a2800c72898e2664a33fda9c
Irit Katriel [Sun, 26 Jun 2022 22:00:52 +0000 (23:00 +0100)]
[3.11] gh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282) (GH-94311)
(cherry picked from commit
d71f5adc41569c2d626552269797e0545fc9122c )
Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
Miss Islington (bot) [Sun, 26 Jun 2022 19:07:02 +0000 (12:07 -0700)]
gh-94192: Fix error for dictionary literals with invalid expression as value. (GH-94304)
* Fix error for dictionary literals with invalid expression as value.
* Remove trailing whitespace
(cherry picked from commit
8c237a7a71d52f996f58dc58f6b6ce558d209494 )
Co-authored-by: wookie184 <wookie1840@gmail.com>
Serhiy Storchaka [Sun, 26 Jun 2022 11:24:04 +0000 (14:24 +0300)]
[3.11] gh-93820: Pickle enum.Flag by name (GH-93891). (GH-94288)
(cherry picked from commit
536985814a7116f14c9bc90aa1b3e3d36d5b2367 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 26 Jun 2022 10:42:41 +0000 (03:42 -0700)]
GH-94254: Make _struct module types immutable (GH-94269)
(cherry picked from commit
17ed560fcd0a1442485f9bd48884bbe412f35abc )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Irit Katriel [Sun, 26 Jun 2022 10:11:19 +0000 (11:11 +0100)]
[3.11] [doc] fix typo in reference to tp_descr_get and tp_descr_set (GH-94140) (GH-94293)
(cherry picked from commit
32d595fdcd4be8e1f41dcfe84ccf4de89fea3c3f )
Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
Miss Islington (bot) [Sun, 26 Jun 2022 08:56:55 +0000 (01:56 -0700)]
Run Tools/scripts/reindent.py (GH-94225)
Reindent files which were not properly formatted (PEP 8: 4 spaces).
Remove also some trailing spaces.
(cherry picked from commit
e87ada48a9e5d9d03f9759138869216df0d7383a )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sun, 26 Jun 2022 08:38:06 +0000 (01:38 -0700)]
gh-83499: Fix closing file descriptors in tempfile (GH-93874)
(cherry picked from commit
d4792ce916b94d090b6c7bce8b0f973e840c9e4e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 25 Jun 2022 22:51:19 +0000 (15:51 -0700)]
gh-70474: [doc] fix wording of GET_ANEXT doc (GH-94048)
(cherry picked from commit
9af6b75298d066e89646acf8df1704bef183a6f8 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Sat, 25 Jun 2022 20:59:43 +0000 (13:59 -0700)]
bpo-39971: Change examples to be runnable (GH-32172)
(cherry picked from commit
c57a1c76d71075b14f6524b4681f29a3f1e88cb2 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Erlend Egeberg Aasland [Sat, 25 Jun 2022 20:55:17 +0000 (22:55 +0200)]
[3.11] gh-90016: Reword sqlite3 adapter/converter docs (GH-93095) (#94272)
Also add adapters and converter recipes.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com.
(cherry picked from commit
bd3c1c187e0e4fde5aec6835d180e9eddde8ceb6 )
Miss Islington (bot) [Sat, 25 Jun 2022 16:10:08 +0000 (09:10 -0700)]
gh-94245: Test pickling and copying of typing.Tuple[()] (GH-94259)
(cherry picked from commit
75cb3abc3bf10c7be3b374bfb4c060c36d251411 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 25 Jun 2022 14:40:14 +0000 (07:40 -0700)]
gh-94207: Fix struct module leak (GH-94239) (GH-94265)
Make _struct.Struct a GC type
This fixes a memory leak in the _struct module, where as soon
as a Struct object is stored in the cache, there's a cycle from
the _struct module to the cache to Struct objects to the Struct
type back to the module. If _struct.Struct is not gc-tracked, that
cycle is never collected.
This PR makes _struct.Struct GC-tracked, and adds a regression test.
(cherry picked from commit
6b865349aae47b90f9ef0b98f3fe3720c2f05601 )
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Miss Islington (bot) [Fri, 24 Jun 2022 18:54:47 +0000 (11:54 -0700)]
gh-94217: Skip import tests when _testcapi is a builtin (GH-94218)
(cherry picked from commit
0a40025b803a8dc1d604538e317992827ab96625 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Fri, 24 Jun 2022 17:30:32 +0000 (10:30 -0700)]
IDLE: replace if statement with expression (GH-94228)
(cherry picked from commit
91f9947f231cce2c72a3fb7b5c8e8cf49cc2c10f )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 24 Jun 2022 17:15:25 +0000 (10:15 -0700)]
Docs: Remove `Provides [...]` from `multiprocessing.shared_memory` description (GH-92761)
(cherry picked from commit
a91ffcf3fa15ce3884f620c799566aa734412f9d )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Fri, 24 Jun 2022 15:30:46 +0000 (08:30 -0700)]
gh-84461: Build Emscripten with WASM BigInt support (GH-94219)
(cherry picked from commit
e69306f08b9be84ccdd0a1c6601ec229c4e5b377 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Fri, 24 Jun 2022 11:20:16 +0000 (04:20 -0700)]
gh-94205: Ensures all required DLLs are copied on Windows for underpth tests (GH-94206)
(cherry picked from commit
51fd4de101349bbea8afa4e212489f4b87e3a99b )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 24 Jun 2022 11:17:21 +0000 (04:17 -0700)]
gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142)
- c_longlong and c_longdouble need experimental WASM bigint.
- Skip tests that need threading
- Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
(cherry picked from commit
8625802d854ec0152177a6ff0ac092e0e3ff98a5 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Fri, 24 Jun 2022 11:02:14 +0000 (04:02 -0700)]
gh-93692: remove "build finished successfully" message from setup.py (GH-93693)
The message was only emitted when the build succeeded _and_ there were
missing modules.
(cherry picked from commit
ab077d1e17032f84514292ae3fb8dee9bcfd2ce9 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Thu, 23 Jun 2022 21:18:20 +0000 (14:18 -0700)]
[Enum] Remove automatic docstring generation (GH-94188)
(cherry picked from commit
28a2ccfff279867b87aa31f56bfc97cf3d6b3afe )
Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Pablo Galindo Salgado [Thu, 23 Jun 2022 17:38:06 +0000 (18:38 +0100)]
[3.11] gh-92858: Improve error message for some suites with syntax error before ':' (GH-92894) (#94180)
(cherry picked from commit
2fc83ac3afa161578200dbf8d823a20e0801c0c0 )
Co-authored-by: wookie184 <wookie1840@gmail.com>
Co-authored-by: wookie184 <wookie1840@gmail.com>
Miss Islington (bot) [Thu, 23 Jun 2022 16:57:29 +0000 (09:57 -0700)]
gh-93771: Clarify how deepfreeze.py is run (GH-94150)
(cherry picked from commit
4e796f56465f7264ddba63c8396d2649e098b617 )
Co-authored-by: Guido van Rossum <guido@python.org>
Miss Islington (bot) [Thu, 23 Jun 2022 16:36:00 +0000 (09:36 -0700)]
[3.11] GH-91742: Fix pdb crash after jump (GH-94171) (#94176)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Ken Jin [Thu, 23 Jun 2022 16:24:49 +0000 (00:24 +0800)]
[3.11] gh-93382: Cache result of `PyCode_GetCode` in codeobject (GH-93383) (#93493)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Jun 2022 15:14:45 +0000 (08:14 -0700)]
[Enum] fix typo (GH-94158)
(cherry picked from commit
b4e0d6124a848a22df1ba12891329242c9e96f11 )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Christian Heimes [Thu, 23 Jun 2022 10:11:35 +0000 (12:11 +0200)]
[3.11] gh-84461: Fix test_sqlite for Emscripten/WASI (GH-94125) (GH-94157)
(cherry picked from commit
15bfabd1aabb0335f33202b28f96b4e4062b3bce )
Co-authored-by: Christian Heimes <christian@python.org>
Julien Palard [Thu, 23 Jun 2022 09:13:11 +0000 (11:13 +0200)]
[3.11] gh-86404: [doc] Fix missing backtick and double target name. (GH-94120) (GH-94159)
(cherry picked from commit
11e865c74baa45ac9eda69f2f6af05505fc03ce5 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Thu, 23 Jun 2022 06:46:33 +0000 (23:46 -0700)]
gh-91456: [Enum] Deprecate default auto() behavior with mixed value types (GH-91457)
When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value.
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
(cherry picked from commit
fb1e9506c14ef32d5bec126dad6fa769c8c054f6 )
Co-authored-by: Oscar R <89599049+oscar-LT@users.noreply.github.com>
Miss Islington (bot) [Thu, 23 Jun 2022 03:43:02 +0000 (20:43 -0700)]
Closes gh-94152: Update pyvideo.org URL (GH-94075)
The URL is now https://pyvideo.org, which uses HTTPS and avoids a redirect.
(cherry picked from commit
7c439dca13435085efb2fddf9ac75e5305db7ada )
Co-authored-by: partev <petrosyan@gmail.com>
Miss Islington (bot) [Wed, 22 Jun 2022 22:36:47 +0000 (15:36 -0700)]
gh-84623: Remove unused imports in idlelib (GH-94143)
Remove commented code in test_debugger_r.py.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
576dd901170af30fc50b0a7f07a388b38fd724a9 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 22 Jun 2022 17:05:04 +0000 (10:05 -0700)]
gh-94114: Remove obsolete reference to python.org mirrors (GH-94115)
* gh-94114
(cherry picked from commit
8661c5053fbe3e246289d77e49a813470b3a16f7 )
Co-authored-by: partev <petrosyan@gmail.com>
Pablo Galindo Salgado [Wed, 22 Jun 2022 16:59:54 +0000 (17:59 +0100)]
[3.11] Add an error message to the ABI-dump file check (#94129)
Mark Shannon [Wed, 22 Jun 2022 15:32:02 +0000 (16:32 +0100)]
[3.11] GH-93516: Backport GH-93769: Speedup line number checks when tracing (GH-94127)
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Miss Islington (bot) [Wed, 22 Jun 2022 13:57:56 +0000 (06:57 -0700)]
gh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885) (GH-94121)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit
d36954b7ead06daead3dcf9b0dd9f8002eab508f )
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
Miss Islington (bot) [Wed, 22 Jun 2022 12:32:30 +0000 (05:32 -0700)]
gh-93951: In test_bdb.StateTestCase.test_skip, avoid including auxiliary importers. (GH-93962) (GH-94118)
Co-authored-by: Brett Cannon <brett@python.org>
(cherry picked from commit
c029b552f39200977325d4351803bdd13ddccc4f )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Wed, 22 Jun 2022 12:29:09 +0000 (05:29 -0700)]
Fix typo in _io.TextIOWrapper Clinic input (GH-94037) (GH-94116)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
ca308c13daa722f3669a14f1613da768086beb6a )
Co-authored-by: fikotta <81991278+fikotta@users.noreply.github.com>
Miss Islington (bot) [Wed, 22 Jun 2022 10:52:35 +0000 (03:52 -0700)]
gh-94101 Disallow instantiation of SSLSession objects (GH-94102)
Fixes GH-94101
Automerge-Triggered-By: GH:tiran
(cherry picked from commit
dc8e1d0390e16e90b2f74f6bd6417324a357bc23 )
Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
Miss Islington (bot) [Wed, 22 Jun 2022 09:18:15 +0000 (02:18 -0700)]
gh-74696: Do not change the current working directory in shutil.make_archive() if possible (GH-93160) (GH-94105)
It is no longer changed when create a zip or tar archive.
It is still changed for custom archivers registered with shutil.register_archive_format()
if root_dir is not None.
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
fda4b2f06364ae5ef91ecd9c09e2af380c8b0b4c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 22 Jun 2022 08:47:52 +0000 (01:47 -0700)]
DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94089)
(cherry picked from commit
0709586744ec58dd60492e16b08fff6dc1149a0a )
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
Miss Islington (bot) [Tue, 21 Jun 2022 22:04:51 +0000 (15:04 -0700)]
bpo-30535: [doc] state that sys.meta_path is not empty by default (GH-94098) (GH-94099)
Co-authored-by: Windson yang <wiwindson@outlook.com>
(cherry picked from commit
6575841266b83f3121c188695c7513e551ade034 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Jun 2022 21:51:27 +0000 (14:51 -0700)]
gh-92611: Add details on replacements for cgi utility funcs (GH-92792) (GH-93967)
Per [suggestions on a Discourse thread](https://discuss.python.org/t/pep-594-take-2-removing-dead-batteries-from-the-standard-library/13508/51), discussed in GH-92611 and as a followup to PR GH-92612 , this PR add additional specific per-function replacement information for the utility functions in the `cgi` module deprecated by PEP 594 (PEP-594).
(cherry picked from commit
71354adff07f8beba8374767532bb9da34546e66 )
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Tue, 21 Jun 2022 21:29:03 +0000 (14:29 -0700)]
gh-87389: Fix an open redirection vulnerability in http.server. (GH-93879)
Fix an open redirection vulnerability in the `http.server` module when
an URI path starts with `//` that could produce a 301 Location header
with a misleading target. Vulnerability discovered, and logic fix
proposed, by Hamza Avvan (@hamzaavvan).
Test and comments authored by Gregory P. Smith [Google].
(cherry picked from commit
4abab6b603dd38bec1168e9a37c40a48ec89508e )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 21 Jun 2022 20:31:57 +0000 (13:31 -0700)]
gh-93021: Fix __text_signature__ for __get__ (GH-93023) (GH-94085)
Because of the way wrap_descr_get is written, the second argument
to __get__ methods implemented through the wrapper is always
optional.
(cherry picked from commit
4e08fbcfdfa57ea94091aabdd09413708e3fb2bf )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 21 Jun 2022 19:52:47 +0000 (12:52 -0700)]
Tutorial: specify match cases don't fall through (GH-93615) (GH-94083)
(cherry picked from commit
dd5cf84f245abf84405833320b8f25dbc43b24d2 )
Co-authored-by: max <36980911+pr2502@users.noreply.github.com>
Łukasz Langa [Tue, 21 Jun 2022 19:51:15 +0000 (21:51 +0200)]
[3.11] gh-93240: clarify wording in IO tutorial (GH-93276) (GH-94082)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit
51d673176ac90f2144e3e7a492e5b3ea53bdba2e )
Co-authored-by: paulreece <96156234+paulreece@users.noreply.github.com>
Christian Heimes [Tue, 21 Jun 2022 19:25:39 +0000 (21:25 +0200)]
[3.11] gh-91387: Fix tarfile test on WASI (GH-93984) (#94074)
Co-authored-by: Christian Heimes <christian@python.org>
Łukasz Langa [Tue, 21 Jun 2022 19:22:27 +0000 (21:22 +0200)]
[3.11] gh-93675: Fix typos in `Doc/` (GH-93676) (GH-94079)
Closes GH-93675
(cherry picked from commit
830513754d081619b2d72db17770627312072fa5 )
Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Jun 2022 19:06:05 +0000 (12:06 -0700)]
gh-93851: Fix all broken links in Doc/ (GH-93853) (GH-94076)
(cherry picked from commit
f62ff97f31a775cc7956adeae32c14e7c85bdc15 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Tue, 21 Jun 2022 18:09:07 +0000 (11:09 -0700)]
gh-91387: Strip trailing slash from tarfile longname directories (GH-32423)
Co-authored-by: Brett Cannon <brett@python.org>
(cherry picked from commit
c1e19421c23d1261ecbbe7375316adc1c24f0a87 )
Co-authored-by: Chris Fernald <chrisf671@gmail.com>
Miss Islington (bot) [Tue, 21 Jun 2022 17:50:47 +0000 (10:50 -0700)]
gh-86986: Drop compatibility support for Sphinx 2 (GH-93737)
* Revert "bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)"
This reverts commit
5c1f15b4b1024cbf0acc85832f0c623d1a4605fd
* Revert "bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)"
This reverts commit
b63a620014b67a6e63d10783149c41baaf59def8 .
(cherry picked from commit
0efe3a1636c143fe0694a8e4d25d6eae19e0d618 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 21 Jun 2022 13:07:26 +0000 (06:07 -0700)]
gh-94052: Don't re-run failed tests with --python option (GH-94054)
(cherry picked from commit
0ff7b996f5d836e63cdaf652c7aa734285261096 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Tue, 21 Jun 2022 11:52:47 +0000 (04:52 -0700)]
gh-94028: Clear and reset sqlite3 statements properly in cursor iternext (GH-94042)
(cherry picked from commit
94eeac03dc8c643ff050e7d0d306637d9556f798 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 21 Jun 2022 07:01:52 +0000 (00:01 -0700)]
gh-94021: Address unreachable code warning in specialize code (GH-94022)
(cherry picked from commit
77c839c98fe57dcb01f5cad2e65fb4cac5a052c1 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Mon, 20 Jun 2022 18:37:27 +0000 (11:37 -0700)]
gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation (GH-93641)
(cherry picked from commit
38af903506e9b18c6350c1dadcb489f057713f36 )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Mon, 20 Jun 2022 16:42:51 +0000 (09:42 -0700)]
GH-93249: relax overly strict assertion on bounds->ar_start (GH-93961) (GH-94032)
(cherry picked from commit
1603a1029f44f0fdc87c65b02063229962194f84 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Mon, 20 Jun 2022 14:14:47 +0000 (07:14 -0700)]
gh-90539: doc: Expand on what should not go into CFLAGS, LDFLAGS (GH-92754)
(cherry picked from commit
61f24e7885bed096b5d7f75aff13c1001994b35a )
Co-authored-by: Matthias Köppe <mkoeppe@math.ucdavis.edu>
Victor Stinner [Mon, 20 Jun 2022 13:47:41 +0000 (15:47 +0200)]
gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938) (#94000)
Move the follow functions and type from frameobject.h to pyframe.h,
so the standard <Python.h> provide frame getter functions:
* PyFrame_Check()
* PyFrame_GetBack()
* PyFrame_GetBuiltins()
* PyFrame_GetGenerator()
* PyFrame_GetGlobals()
* PyFrame_GetLasti()
* PyFrame_GetLocals()
* PyFrame_Type
Remove #include "frameobject.h" from many C files. It's no longer
needed.
(cherry picked from commit
27b989403356ccdd47545a93aeab8434e9c69f21 )
Miss Islington (bot) [Mon, 20 Jun 2022 12:08:14 +0000 (05:08 -0700)]
gh-84461: Silence some compiler warnings on WASM (GH-93978)
(cherry picked from commit
774ef28814d0d9d57ec813cb31b0a7af6c476127 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Sun, 19 Jun 2022 23:25:13 +0000 (16:25 -0700)]
gh-79009: sqlite3.iterdump now correctly handles tables with autoincrement (GH-9621)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit
affa9f22cfd1e83a5fb413e5ce2feef9ea1a49ac )
Co-authored-by: itssme <itssme3000@gmail.com>
Miss Islington (bot) [Sun, 19 Jun 2022 20:27:46 +0000 (13:27 -0700)]
gh-61162: Clarify sqlite3 connection context manager docs (GH-93890)
Explicitly note that transactions are only closed if there is an open
transation at `__exit__`, and that transactions are not implicitly
opened during `__enter__`.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Automerge-Triggered-By: GH:erlend-aasland
(cherry picked from commit
8e0897814109765a9e463676413fff016875217b )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Sun, 19 Jun 2022 19:57:13 +0000 (12:57 -0700)]
gh-84461: Skip test_unwritable_directory again on Emscripten (GH-94007)
GH-93992 removed geteuid() and enabled the test again on Emscripten.
(cherry picked from commit
62363bfe59b236c324cf36cd69b6f586a125bc2b )
Co-authored-by: Christian Heimes <christian@python.org>