]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agopickle docs: Fix typos and improve wording (GH-24776)
Géry Ogam [Thu, 7 Apr 2022 01:38:35 +0000 (03:38 +0200)] 
pickle docs: Fix typos and improve wording (GH-24776)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agodoc: Link to `string.capwords` from `str.title` (GH-20913)
Eric Wieser [Thu, 7 Apr 2022 01:31:39 +0000 (02:31 +0100)] 
doc: Link to `string.capwords` from `str.title` (GH-20913)

Since `title()` mentions its own short-comings, it should also mention the library function which does not possess them.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agossl docs: Fix typo (GH-32314)
Frederick [Thu, 7 Apr 2022 00:51:35 +0000 (17:51 -0700)] 
ssl docs: Fix typo (GH-32314)

3 years agopkgutil docs: Link sys constants, add backticks (GH-32356)
Boris Verkhovskiy [Thu, 7 Apr 2022 00:51:05 +0000 (17:51 -0700)] 
pkgutil docs: Link sys constants, add backticks (GH-32356)

Co-authored-by: Éric <merwok@netwok.org>
3 years agobpo-35134: Remove the Include/code.h header file (GH-32385)
Victor Stinner [Thu, 7 Apr 2022 00:29:52 +0000 (02:29 +0200)] 
bpo-35134: Remove the Include/code.h header file (GH-32385)

Remove the Include/code.h header file. C extensions should only
include the main <Python.h> header file.

Python.h includes directly Include/cpython/code.h instead.

3 years agobpo-35134: Add Include/cpython/setobject.h header (GH-32384)
Victor Stinner [Wed, 6 Apr 2022 23:26:24 +0000 (01:26 +0200)] 
bpo-35134: Add Include/cpython/setobject.h header (GH-32384)

3 years agobpo-47239: Fixes py.exe output when run in a virtual environment. (GH-32364)
Steve Dower [Wed, 6 Apr 2022 23:09:54 +0000 (00:09 +0100)] 
bpo-47239: Fixes py.exe output when run in a virtual environment. (GH-32364)

3 years agobpo-35134: Add Include/cpython/complexobject.h header (GH-32383)
Victor Stinner [Wed, 6 Apr 2022 23:05:27 +0000 (01:05 +0200)] 
bpo-35134: Add Include/cpython/complexobject.h header (GH-32383)

Move the private _PyComplex_FormatAdvancedWriter() function to the
internal C API. This function is no longer exported.

3 years agobpo-46576: Speed up test_peg_generator by using a static library for shared sources...
Jeremy Kloth [Wed, 6 Apr 2022 21:55:58 +0000 (15:55 -0600)] 
bpo-46576: Speed up test_peg_generator by using a static library for shared sources (GH-32338)

Speed up test_peg_generator by using a static library for shared sources to avoid recompiling as much code.

3 years agoChange parameter name from *x* for reals to *n* for integers. (GH-32377)
Raymond Hettinger [Wed, 6 Apr 2022 19:35:05 +0000 (14:35 -0500)] 
Change parameter name from *x* for reals to *n* for integers. (GH-32377)

3 years agobpo-47061: use `warnings._deprecated()` with asynchat, asyncore, and smtpd (GH-32350)
Brett Cannon [Wed, 6 Apr 2022 18:22:39 +0000 (11:22 -0700)] 
bpo-47061: use `warnings._deprecated()` with asynchat, asyncore, and smtpd (GH-32350)

3 years agoMinor code nit: Move an unrelated statement out of a try clause in Sequence.index...
Géry Ogam [Wed, 6 Apr 2022 18:03:36 +0000 (20:03 +0200)] 
Minor code nit: Move an unrelated statement out of a try clause in Sequence.index (GH-32330)

3 years agobpo-26579: Add object.__getstate__(). (GH-2821)
Serhiy Storchaka [Wed, 6 Apr 2022 17:00:14 +0000 (20:00 +0300)] 
bpo-26579: Add object.__getstate__(). (GH-2821)

Copying and pickling instances of subclasses of builtin types
bytearray, set, frozenset, collections.OrderedDict, collections.deque,
weakref.WeakSet, and datetime.tzinfo now copies and pickles instance attributes
implemented as slots.

3 years agoRemove python2 support in logging cookbook example. (GH-32362)
Mathieu Dupuy [Wed, 6 Apr 2022 16:57:54 +0000 (18:57 +0200)] 
Remove python2 support in logging cookbook example. (GH-32362)

3 years agobpo-46721: Optimize set.issuperset() for non-set arguments (GH-31280)
Serhiy Storchaka [Wed, 6 Apr 2022 16:57:13 +0000 (19:57 +0300)] 
bpo-46721: Optimize set.issuperset() for non-set arguments (GH-31280)

3 years agobpo-43464: Optimize set.intersection() for non-set arguments (GH-31316)
Serhiy Storchaka [Wed, 6 Apr 2022 16:56:28 +0000 (19:56 +0300)] 
bpo-43464: Optimize set.intersection() for non-set arguments (GH-31316)

3 years agobpo-47227: Suppress expression chaining for more RE parsing errors (GH-32333)
Serhiy Storchaka [Wed, 6 Apr 2022 16:54:44 +0000 (19:54 +0300)] 
bpo-47227: Suppress expression chaining for more RE parsing errors (GH-32333)

3 years agobpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)
Serhiy Storchaka [Wed, 6 Apr 2022 16:53:50 +0000 (19:53 +0300)] 
bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)

They were undocumented and never working.

3 years agoFix whitespace/indentation issues in test_sys (GH-32369)
Ken Jin [Wed, 6 Apr 2022 15:40:51 +0000 (22:40 +0700)] 
Fix whitespace/indentation issues in test_sys (GH-32369)

3 years agostdtypes docs: fix typo (GH-32349)
Ian [Wed, 6 Apr 2022 15:39:17 +0000 (11:39 -0400)] 
stdtypes docs: fix typo (GH-32349)

3 years agobpo-47235: Note where a typo is intentional in code. (GH-32348)
Gregory P. Smith [Wed, 6 Apr 2022 15:06:58 +0000 (08:06 -0700)] 
bpo-47235: Note where a typo is intentional in code. (GH-32348)

People keep popping up reporting these as typos in the docs despite
being described as typos in the surrounding text.  Hopefully a comment
on the line itself makes it more obvious?

Arguably some of the typo examples are not using the "right" typo as the
"assret" one in particular is now detected by default due to how common
it was in actual code.  But I don't want to to typo chasing by changing
these examples to be other not yet auto-detected typos as they still
illustrate the point well enough.

3 years agobpo-47115: Document which parts of structs are in limited API/stable ABI (GH-32196)
Petr Viktorin [Wed, 6 Apr 2022 14:50:45 +0000 (16:50 +0200)] 
bpo-47115: Document which parts of structs are in limited API/stable ABI (GH-32196)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years agobpo-40421: test_capi uses assertEqual(), not assertEquals() (GH-32361)
Victor Stinner [Wed, 6 Apr 2022 13:12:38 +0000 (15:12 +0200)] 
bpo-40421: test_capi uses assertEqual(), not assertEquals() (GH-32361)

unittest.TestCase.assertEquals() alias is depracated. Fix the
warning:

Lib/test/test_capi.py:1100: DeprecationWarning: Please use assertEqual instead.
  self.assertEquals(frame.f_locals, _testcapi.frame_getlocals(frame))

3 years agobpo-40280: WASM defaults to no dynamic linking (GH-32360)
Christian Heimes [Wed, 6 Apr 2022 12:33:31 +0000 (15:33 +0300)] 
bpo-40280: WASM defaults to no dynamic linking (GH-32360)

3 years agoRevert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)"...
Victor Stinner [Wed, 6 Apr 2022 11:58:07 +0000 (13:58 +0200)] 
Revert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)" (GH-32343)

* Revert "bpo-46850: Move _PyInterpreterState_SetEvalFrameFunc() to internal C API (GH-32054)"

This reverts commit f877b40e3f7e0d97878884d80fbec879a85ab7e8.

* Revert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)"

This reverts commit b9a5522dd952125a99ff554f01f311cae25f5a91.

3 years ago[doc] Add missing backtick. (GH-32355)
Julien Palard [Wed, 6 Apr 2022 11:40:37 +0000 (13:40 +0200)] 
[doc] Add missing backtick. (GH-32355)

3 years agobpo-47189: What's New in 3.11: Faster CPython (GH-32235)
Ken Jin [Wed, 6 Apr 2022 11:38:25 +0000 (18:38 +0700)] 
bpo-47189: What's New in 3.11: Faster CPython (GH-32235)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years agobpo-47103: Copy pgort140.dll into output directory when building PGInstrument on...
Steve Dower [Wed, 6 Apr 2022 10:56:31 +0000 (11:56 +0100)] 
bpo-47103: Copy pgort140.dll into output directory when building PGInstrument on Windows (GH-32083)

3 years agoFix generation of MD5 table at end of Windows release build (GH-32345)
Steve Dower [Wed, 6 Apr 2022 10:55:47 +0000 (11:55 +0100)] 
Fix generation of MD5 table at end of Windows release build (GH-32345)

3 years agoPost 3.11.0a7
Pablo Galindo [Tue, 5 Apr 2022 20:10:38 +0000 (21:10 +0100)] 
Post 3.11.0a7

3 years agoPython 3.11.0a7 v3.11.0a7
Pablo Galindo [Tue, 5 Apr 2022 19:52:24 +0000 (20:52 +0100)] 
Python 3.11.0a7

3 years agobpo-47061: deprecate the `aifc` module (GH-32134)
Brett Cannon [Tue, 5 Apr 2022 19:05:48 +0000 (12:05 -0700)] 
bpo-47061: deprecate the `aifc` module (GH-32134)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agobpo-47230: Silence compiler warnings on Windows from zlib 1.2.12 (GH-32337)
Jeremy Kloth [Tue, 5 Apr 2022 19:03:17 +0000 (13:03 -0600)] 
bpo-47230: Silence compiler warnings on Windows from zlib 1.2.12 (GH-32337)

3 years agobpo-4833: Add ZipFile.mkdir (GH-32160)
Sam Ezeh [Tue, 5 Apr 2022 18:41:38 +0000 (19:41 +0100)] 
bpo-4833: Add ZipFile.mkdir (GH-32160)

3 years agobpo-47009: Fix assert on big endian (GH-32332)
Christian Heimes [Tue, 5 Apr 2022 16:18:02 +0000 (19:18 +0300)] 
bpo-47009: Fix assert on big endian (GH-32332)

3 years agobpo-46607: Add DeprecationWarning for LegacyInterpolation, deprecated in docs since...
Hugo van Kemenade [Tue, 5 Apr 2022 15:15:11 +0000 (18:15 +0300)] 
bpo-46607: Add DeprecationWarning for LegacyInterpolation, deprecated in docs since 3.2 (GH-30927)

3 years agobpo-47088: Add typing.LiteralString (PEP 675) (GH-32064)
Jelle Zijlstra [Tue, 5 Apr 2022 14:21:03 +0000 (07:21 -0700)] 
bpo-47088: Add typing.LiteralString (PEP 675) (GH-32064)

Co-authored-by: Nick Pope <nick@nickpope.me.uk>
3 years agobpo-41930: Add support for SQLite serialise/deserialise API (GH-26728)
Erlend Egeberg Aasland [Tue, 5 Apr 2022 14:15:25 +0000 (16:15 +0200)] 
bpo-41930: Add support for SQLite serialise/deserialise API (GH-26728)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agobpo-47212: Improve error messages for un-parenthesized generator expressions (GH...
Matthieu Dartiailh [Tue, 5 Apr 2022 13:47:13 +0000 (15:47 +0200)] 
bpo-47212: Improve error messages for un-parenthesized generator expressions (GH-32302)

3 years agobpo-45774: Harden SQLite detection (GH-30016)
Erlend Egeberg Aasland [Tue, 5 Apr 2022 12:54:47 +0000 (14:54 +0200)] 
bpo-45774: Harden SQLite detection (GH-30016)

3 years agobpo-47120: make JUMP_NO_INTERRUPT relative (GH-32221)
Irit Katriel [Tue, 5 Apr 2022 11:49:08 +0000 (12:49 +0100)] 
bpo-47120: make JUMP_NO_INTERRUPT relative (GH-32221)

3 years agobpo-47186: Replace JUMP_IF_NOT_EG_MATCH by CHECK_EG_MATCH + jump (GH-32309)
Irit Katriel [Tue, 5 Apr 2022 11:06:22 +0000 (12:06 +0100)] 
bpo-47186: Replace JUMP_IF_NOT_EG_MATCH by CHECK_EG_MATCH + jump (GH-32309)

3 years agobpo-47009: Let PRECALL_NO_KW_LIST_APPEND do its own POP_TOP (GH-32239)
Dennis Sweeney [Tue, 5 Apr 2022 10:18:30 +0000 (06:18 -0400)] 
bpo-47009: Let PRECALL_NO_KW_LIST_APPEND do its own POP_TOP (GH-32239)

3 years agobpo-40280: Add limited Emscripten REPL (GH-32284)
Christian Heimes [Tue, 5 Apr 2022 09:21:11 +0000 (12:21 +0300)] 
bpo-40280: Add limited Emscripten REPL (GH-32284)

Co-authored-by: Katie Bell <katie@katharos.id.au>
3 years agochore/docs: fix rst style and typo (GH-32331)
谭九鼎 [Tue, 5 Apr 2022 09:08:00 +0000 (17:08 +0800)] 
chore/docs: fix rst style and typo (GH-32331)

Current:

![图片](https://user-images.githubusercontent.com/24759802/161704413-30fc91e8-ccd1-4617-8483-bc54ec970f30.png)

After this change:

![图片](https://user-images.githubusercontent.com/24759802/161704636-a5458192-a93a-40af-8bde-90ba80fdb53f.png)

Trivial so I don't think it needs news or issue

Automerge-Triggered-By: GH:JulienPalard
3 years agobpo-42238: [doc]: A make sucpicious false positive. (GH-32329)
Julien Palard [Tue, 5 Apr 2022 07:57:42 +0000 (09:57 +0200)] 
bpo-42238: [doc]: A make sucpicious false positive. (GH-32329)

3 years agobpo-46890: Fix setting of sys._base_executable with framework builds on macOS (GH...
Ronald Oussoren [Tue, 5 Apr 2022 06:05:36 +0000 (08:05 +0200)] 
bpo-46890: Fix setting of sys._base_executable with framework builds on macOS (GH-31958)

The side effect of this bug was that venv environments directly
used the main interpreter instead of the intermediate stub executable,
which can cause problems when a script uses system APIs that
require the use of an application bundle.

3 years agobpo-45847: Adapt macOS installer build to use new tkinter configure vars (GH-32328)
Ned Deily [Tue, 5 Apr 2022 04:46:09 +0000 (00:46 -0400)] 
bpo-45847: Adapt macOS installer build to use new tkinter configure vars (GH-32328)

3 years agobpo-40982: shutil docs: Remove outdated copytree() example (GH-24778)
Zackery Spytz [Tue, 5 Apr 2022 02:57:17 +0000 (19:57 -0700)] 
bpo-40982: shutil docs: Remove outdated copytree() example (GH-24778)

It is not preferable to keep a copy of the implementation in the
docs.

3 years agobpo-43224: typing: Add tests for pickling and copying of unpacked native tuple (GH...
Matthew Rahtz [Tue, 5 Apr 2022 02:52:42 +0000 (03:52 +0100)] 
bpo-43224: typing: Add tests for pickling and copying of unpacked native tuple (GH-32159)

3 years agocrypt docs: Fix references to `methods` attr (GH-26806)
andrei kulakov [Tue, 5 Apr 2022 02:50:13 +0000 (22:50 -0400)] 
crypt docs: Fix references to `methods` attr (GH-26806)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agobpo-32658: Regex docs: Fix metacharacter reference (GH-32230)
Mike cm [Tue, 5 Apr 2022 02:46:54 +0000 (03:46 +0100)] 
bpo-32658: Regex docs: Fix metacharacter reference (GH-32230)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agobpo-45790: List macros in same order in which fields are described (GH-29529)
rtobar [Tue, 5 Apr 2022 02:36:33 +0000 (10:36 +0800)] 
bpo-45790: List macros in same order in which fields are described (GH-29529)

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agobpo-46998: Allow subclassing Any at runtime (GH-31841)
Shantanu [Tue, 5 Apr 2022 02:35:29 +0000 (19:35 -0700)] 
bpo-46998: Allow subclassing Any at runtime (GH-31841)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agobpo-47007: [doc] `str` special method lookup (GH-31863)
Vanshaj Singhania [Tue, 5 Apr 2022 02:34:28 +0000 (19:34 -0700)] 
bpo-47007: [doc] `str` special method lookup (GH-31863)

Clarify the `str()` docs to point out that `object.__str__()`
follows special method lookup.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agobpo-41233: Add links to errnos referenced in exceptions docs (GH-21380)
yyyyyyyan [Tue, 5 Apr 2022 02:01:36 +0000 (02:01 +0000)] 
bpo-41233: Add links to errnos referenced in exceptions docs (GH-21380)

Co-authored-by: Andrew Kuchling <amk@amk.ca>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agoFix "Contributed ... in bpo-bpo-45847" (GH-32299)
Oleg Iarygin [Tue, 5 Apr 2022 01:17:54 +0000 (04:17 +0300)] 
Fix "Contributed ... in bpo-bpo-45847" (GH-32299)

3 years agobpo-47097: Add documentation for TypeVarTuple (#32103)
Matthew Rahtz [Mon, 4 Apr 2022 23:37:01 +0000 (00:37 +0100)] 
bpo-47097: Add documentation for TypeVarTuple (#32103)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agobpo-40280: Add --enable-wasm-dynamic-linking (GH-32253)
Christian Heimes [Mon, 4 Apr 2022 17:31:31 +0000 (20:31 +0300)] 
bpo-40280: Add --enable-wasm-dynamic-linking (GH-32253)

3 years agobpo-46484:Add test for Calendar.iterweekdays (GH-30825)
180909 [Mon, 4 Apr 2022 17:16:56 +0000 (01:16 +0800)] 
bpo-46484:Add test for Calendar.iterweekdays (GH-30825)

3 years agobpo-47208: Allow vendors to override CTYPES_MAX_ARGCOUNT (GH-32297)
Christian Heimes [Mon, 4 Apr 2022 17:13:42 +0000 (20:13 +0300)] 
bpo-47208: Allow vendors to override CTYPES_MAX_ARGCOUNT (GH-32297)

3 years agoDemonstrate `py --list` in the quickstart section of the Windows doc page (GH-29383)
Christian Clauss [Mon, 4 Apr 2022 15:35:51 +0000 (17:35 +0200)] 
Demonstrate `py --list` in the quickstart section of the Windows doc page (GH-29383)

3 years agoRevert "bpo-44800: Document internal frame naming conventions (GH-32281)" (#32301)
Mark Shannon [Mon, 4 Apr 2022 14:09:40 +0000 (15:09 +0100)] 
Revert "bpo-44800: Document internal frame naming conventions (GH-32281)" (#32301)

This reverts commit 124227c95f310d2ecd4b567271ab1919fc7000cb.

3 years agobpo-47152: Remove unused import in re (GH-32298)
Serhiy Storchaka [Mon, 4 Apr 2022 09:00:53 +0000 (12:00 +0300)] 
bpo-47152: Remove unused import in re (GH-32298)

3 years agobpo-47152: Move sources of the _sre module into a subdirectory (GH-32290)
Serhiy Storchaka [Mon, 4 Apr 2022 07:53:26 +0000 (10:53 +0300)] 
bpo-47152: Move sources of the _sre module into a subdirectory (GH-32290)

3 years agobpo-47000: Make `io.text_encoding()` respects UTF-8 mode (GH-32003)
Inada Naoki [Mon, 4 Apr 2022 02:46:57 +0000 (11:46 +0900)] 
bpo-47000: Make `io.text_encoding()` respects UTF-8 mode (GH-32003)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
3 years agoFollow PEP-8 guidelines in tutorial for standard library (GH-26127)
Bob Kline [Sun, 3 Apr 2022 22:31:03 +0000 (18:31 -0400)] 
Follow PEP-8 guidelines in tutorial for standard library (GH-26127)

3 years agobpo-47176: Interrupt handling for wasm32-emscripten builds without pthreads (GH-32209)
Hood Chatham [Sun, 3 Apr 2022 20:58:52 +0000 (13:58 -0700)] 
bpo-47176: Interrupt handling for wasm32-emscripten builds without pthreads (GH-32209)

Co-authored-by: Christian Heimes <christian@python.org>
Co-authored-by: Brett Cannon <brett@python.org>
3 years agobpo-42238: [doc]: make suspicious: false positive. (GH-32292)
Julien Palard [Sun, 3 Apr 2022 20:08:29 +0000 (22:08 +0200)] 
bpo-42238: [doc]: make suspicious: false positive. (GH-32292)

3 years agobpo-46126: Restore 'descriptions' when running tests internally. (GH-32128)
Jason R. Coombs [Sun, 3 Apr 2022 19:33:28 +0000 (15:33 -0400)] 
bpo-46126: Restore 'descriptions' when running tests internally. (GH-32128)

This reverts commit a941e5927f7f2540946813606c61c6aea38db426 (GH-30194).

Automerge-Triggered-By: GH:jaraco
3 years agobpo-23689: re module, fix memory leak when a match is terminated by a signal or memor...
Ma Lin [Sun, 3 Apr 2022 16:16:20 +0000 (00:16 +0800)] 
bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure (GH-32283)

3 years agobpo-47205: Skip error check of sched_get/setaffinity on FreeBSD (GH-32285)
Christian Heimes [Sun, 3 Apr 2022 15:03:49 +0000 (18:03 +0300)] 
bpo-47205: Skip error check of sched_get/setaffinity on FreeBSD (GH-32285)

3 years agobpo-47196: Fix one more PyInit function signature (GH-32280)
Hood Chatham [Sun, 3 Apr 2022 07:45:26 +0000 (00:45 -0700)] 
bpo-47196: Fix one more PyInit function signature (GH-32280)

I missed one PyInit function in #32244.

Automerge-Triggered-By: GH:tiran
3 years agobpo-44800: Document internal frame naming conventions (GH-32281)
Nick Coghlan [Sun, 3 Apr 2022 06:55:55 +0000 (16:55 +1000)] 
bpo-44800: Document internal frame naming conventions (GH-32281)

The fact interpreter frames were split out from full frame objects
rather than always being part of the eval loop implementation means
that it's tricky to infer the expected naming conventions simply
from looking at the code.

Documenting the de facto conventions in pycore_frame.h means future
readers of the code will have a clear explanation of the rationale
for those conventions (i.e. minimising non-functional code churn).

3 years agoLanguage reference: Remove duplicated text about iterable unpacking (GH-25212)
Jiashuo Li [Sun, 3 Apr 2022 02:41:16 +0000 (10:41 +0800)] 
Language reference: Remove duplicated text about iterable unpacking (GH-25212)

3 years agobpo-46033: Clarify for-statement execution (GH-30025)
Michał D [Sun, 3 Apr 2022 00:52:20 +0000 (02:52 +0200)] 
bpo-46033: Clarify for-statement execution (GH-30025)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agobpo-24563: Link encoding names to encoding declarations (GH-32274)
Terry Jan Reedy [Sun, 3 Apr 2022 00:13:37 +0000 (20:13 -0400)] 
bpo-24563: Link encoding names to encoding declarations (GH-32274)

3 years agobpo-45584: Clarify `math.trunc` documentation (GH-29183)
Arthur Milchior [Sat, 2 Apr 2022 22:11:20 +0000 (00:11 +0200)] 
bpo-45584: Clarify `math.trunc` documentation (GH-29183)

While floor/ceil 's documentation are very precise, `truncate` was not explained. I actually had to search online to understand the difference between `truncate` and `floor` (admittedly, once I remembered that numbers are signed, and that floating numbers actually uses a bit for negation symbol instead of two complement, it became obvious)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agoos docs: fix typo (GH-28996)
Vitor Buxbaum Orlandi [Sat, 2 Apr 2022 21:38:33 +0000 (18:38 -0300)] 
os docs: fix typo (GH-28996)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
3 years agocodecs docs: fix grammar mistake (GH-29462)
180909 [Sat, 2 Apr 2022 21:12:32 +0000 (05:12 +0800)] 
codecs docs: fix grammar mistake (GH-29462)

3 years agobpo-46315: Use fopencookie only on Emscripten 3.x and newer (GH-32266)
Christian Heimes [Sat, 2 Apr 2022 21:11:38 +0000 (00:11 +0300)] 
bpo-46315: Use fopencookie only on Emscripten 3.x and newer (GH-32266)

3 years agobpo-45114: Use lstat() instead of stat() in stat docs example (GH-29845)
180909 [Sat, 2 Apr 2022 20:58:26 +0000 (04:58 +0800)] 
bpo-45114: Use lstat() instead of stat() in stat docs example (GH-29845)

3 years agobpo-47031: Improve documentation for `math.nan` (GH-32170)
Charlie Zhao [Sat, 2 Apr 2022 19:58:03 +0000 (03:58 +0800)] 
bpo-47031: Improve documentation for `math.nan` (GH-32170)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agoDocument func parameter of locale.atof (GH-18183)
Kevin Locke [Sat, 2 Apr 2022 19:52:05 +0000 (19:52 +0000)] 
Document func parameter of locale.atof (GH-18183)

The second parameter (named `func`) has been present since the `locale`
module was introduced in eef1d4e8b1, but has never been documented.

This commit updates the documentation for `locale.atof` to clarify the
behavior of the function and how the `func` parameter is used.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
3 years agoMore minor fixes to C API docs (GH-31714)
Jelle Zijlstra [Sat, 2 Apr 2022 19:32:59 +0000 (12:32 -0700)] 
More minor fixes to C API docs (GH-31714)

* init_config: wording fixes

* bytearray: remove XXX, there is a good link to the buffer docs

* bytes, call, exceptions: minor wording fixes

3 years agoMore minor fixes to C API docs (GH-31525)
Jelle Zijlstra [Sat, 2 Apr 2022 19:31:05 +0000 (12:31 -0700)] 
More minor fixes to C API docs (GH-31525)

* wording fixes in type.rst

* grammar and punctuation in sys.rst

* set: grammar fixes

* structures: capitalization fix

* grammar fixes for sequence

* objects: point to Py_TYPE instead of direct object access

* numbers: add more explicit Python equivalences

* method: add missing period

* memory: grammar fix

* mapping: grammar fixes

* long: grammar fix

* iter: fix grammar for PyAIter_Check

* init: grammar fix

3 years agobpo-47194: Update zlib to v1.2.12 on Windows to resolve CVE-2018-25032 (GH-32241)
Zachary Ware [Sat, 2 Apr 2022 13:10:23 +0000 (08:10 -0500)] 
bpo-47194: Update zlib to v1.2.12 on Windows to resolve CVE-2018-25032 (GH-32241)

3 years ago[doc] fix superfluous backtick in front of role. (GH-32220)
Julien Palard [Sat, 2 Apr 2022 13:08:36 +0000 (15:08 +0200)] 
[doc] fix superfluous backtick in front of role. (GH-32220)

3 years agobpo-47152: Convert the re module into a package (GH-32177)
Serhiy Storchaka [Sat, 2 Apr 2022 08:35:13 +0000 (11:35 +0300)] 
bpo-47152: Convert the re module into a package (GH-32177)

The sre_* modules are now deprecated.

3 years agobpo-40280: Enable most file-at() and nanosleep APIs again (GH-32238)
Christian Heimes [Sat, 2 Apr 2022 08:13:44 +0000 (11:13 +0300)] 
bpo-40280: Enable most file-at() and nanosleep APIs again (GH-32238)

3 years agobpo-40280: Detect if WASM platform supports threading (GH-32243)
Christian Heimes [Sat, 2 Apr 2022 08:12:44 +0000 (11:12 +0300)] 
bpo-40280: Detect if WASM platform supports threading (GH-32243)

Automerge-Triggered-By: GH:tiran
3 years agobpo-47196: Fix function pointer cast in test_imp (GH-32244)
Hood Chatham [Sat, 2 Apr 2022 08:00:49 +0000 (01:00 -0700)] 
bpo-47196: Fix function pointer cast in test_imp (GH-32244)

The function PyInit_imp_dummy is declared as void f(PyObject* spec)
but called as void f(void). On wasm targets without the call
trampolines this causes a fatal error.

Automerge-Triggered-By: GH:tiran
3 years agobpo-47131: Speedup AST comparisons in test_unparse by using node traversal (GH-32132)
Jeremy Kloth [Sat, 2 Apr 2022 01:54:04 +0000 (19:54 -0600)] 
bpo-47131: Speedup AST comparisons in test_unparse by using node traversal (GH-32132)

3 years agono-issue: Add assertion to PyModule_GetName for understanding (GH-32236)
Dong-hee Na [Sat, 2 Apr 2022 00:56:30 +0000 (09:56 +0900)] 
no-issue: Add assertion to PyModule_GetName for understanding (GH-32236)

3 years agobpo-40280: Emscripten fork_exec now fails early (GH-32224)
Christian Heimes [Fri, 1 Apr 2022 19:20:56 +0000 (22:20 +0300)] 
bpo-40280: Emscripten fork_exec now fails early (GH-32224)

3 years agobpo-47089: Avoid test_compileall failures on Windows (GH-32037)
Jeremy Kloth [Fri, 1 Apr 2022 18:13:01 +0000 (12:13 -0600)] 
bpo-47089: Avoid test_compileall failures on Windows (GH-32037)

3 years agobpo-40280: Add debug Emscripten flavors (GH-32233)
Christian Heimes [Fri, 1 Apr 2022 15:24:00 +0000 (18:24 +0300)] 
bpo-40280: Add debug Emscripten flavors (GH-32233)

3 years agobpo-46023: makesetup: skip all duplicate modules (GH-32234)
Christian Heimes [Fri, 1 Apr 2022 15:23:12 +0000 (18:23 +0300)] 
bpo-46023: makesetup: skip all duplicate modules (GH-32234)

3 years agobpo-47168: Mark files generated by `make regen-limited-abi` as generated (GH-32195)
Petr Viktorin [Fri, 1 Apr 2022 15:19:05 +0000 (17:19 +0200)] 
bpo-47168: Mark files generated by `make regen-limited-abi` as generated (GH-32195)

3 years agobpo-47172: Compiler enhancements (GH-32200)
Irit Katriel [Fri, 1 Apr 2022 14:50:15 +0000 (15:50 +0100)] 
bpo-47172: Compiler enhancements (GH-32200)

* Make virtual opcodes negative.

* Make is_jump detect only actual jumps.

* Use is_block_push for the exception block setup opcodes.