]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agogh-96151: Use a private name for passing builtins to dataclass. This now allows for...
Shantanu [Mon, 31 Oct 2022 12:31:01 +0000 (05:31 -0700)] 
gh-96151: Use a private name for passing builtins to dataclass. This now allows for a field named BUILTIN (gh-98143)

3 years agogh-98879: Remove unreachable error case from COMPARE_OP_STR_JUMP (GH-98882)
Dennis Sweeney [Sun, 30 Oct 2022 23:07:11 +0000 (19:07 -0400)] 
gh-98879: Remove unreachable error case from COMPARE_OP_STR_JUMP (GH-98882)

Thanks to PEP 623 changes, the comparison cannot fail.

3 years agogh-97966: Update uname docs to clarify the special nature of the platform attribute...
Jason R. Coombs [Sun, 30 Oct 2022 15:53:58 +0000 (11:53 -0400)] 
gh-97966: Update uname docs to clarify the special nature of the platform attribute and to indicate when it became late-bound. (#97972)

3 years agogh-96853: Restore test coverage for Py_Initialize(Ex) (GH-98212)
Nick Coghlan [Sun, 30 Oct 2022 12:01:30 +0000 (22:01 +1000)] 
gh-96853: Restore test coverage for Py_Initialize(Ex) (GH-98212)

* As most of `test_embed` now uses `Py_InitializeFromConfig`, add
  a specific test case to cover `Py_Initialize` (and `Py_InitializeEx`)
* Rename `_testembed` init helper to clarify the API used
* Add a `PyConfig_Clear` call in `Py_InitializeEx` to make
  the code more obviously correct (it already didn't leak as
  none of the dynamically allocated config fields were being
  populated, but it's clearer if the wrappers follow the
  documented API usage guidelines)

3 years agogh-98783: Fix crashes when `str` subclasses are used in `_PyUnicode_Equal` (#98806)
Nikita Sobolev [Sun, 30 Oct 2022 06:23:20 +0000 (09:23 +0300)] 
gh-98783: Fix crashes when `str` subclasses are used in `_PyUnicode_Equal` (#98806)

3 years agogh-98793: Fix typecheck in `overlapped.c` (#98835)
Charlie Zhao [Sun, 30 Oct 2022 04:34:46 +0000 (12:34 +0800)] 
gh-98793: Fix typecheck in `overlapped.c` (#98835)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agoglossary.rst: Fix typo in package definition (GH-98865)
ab [Sat, 29 Oct 2022 22:42:59 +0000 (00:42 +0200)] 
glossary.rst: Fix typo in package definition (GH-98865)

This is a tiny typo fix of package definition in glossary.
According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly.

Automerge-Triggered-By: GH:AlexWaygood
3 years agoFix typo in docs (GH-98863)
Yuvi Panda [Sat, 29 Oct 2022 20:44:06 +0000 (13:44 -0700)] 
Fix typo in docs (GH-98863)

3 years agogh-93358: Fix python-config docs for how to embed Python (#98649)
Erlend E. Aasland [Sat, 29 Oct 2022 18:46:34 +0000 (20:46 +0200)] 
gh-93358: Fix python-config docs for how to embed Python (#98649)

3 years agoFix comment typos in `_operator.c` (#98853)
David Buchanan [Sat, 29 Oct 2022 18:25:09 +0000 (19:25 +0100)] 
Fix comment typos in `_operator.c` (#98853)

3 years agodataclasses docs: consistent indentation (4 spaces) in examples (#98855)
FC Stegerman [Sat, 29 Oct 2022 17:06:52 +0000 (17:06 +0000)] 
dataclasses docs: consistent indentation (4 spaces) in examples (#98855)

3 years agoGH-90352: fix _SelectorDatagramTransport to inherit from DatagramTransport (#98844)
Kumar Aditya [Sat, 29 Oct 2022 16:43:42 +0000 (22:13 +0530)] 
GH-90352: fix _SelectorDatagramTransport to inherit from DatagramTransport (#98844)

3 years agogh-98744: Prevent column-level decoding crashes on traceback module (#98824)
Batuhan Taskaya [Sat, 29 Oct 2022 12:28:20 +0000 (15:28 +0300)] 
gh-98744: Prevent column-level decoding crashes on traceback module (#98824)

3 years agogh-98286: handle empty filename in ZipFile/ZipInfo properly (#98346)
FC Stegerman [Sat, 29 Oct 2022 05:45:46 +0000 (05:45 +0000)] 
gh-98286: handle empty filename in ZipFile/ZipInfo properly (#98346)

effectively code modernization and a meaningful exception.

3 years agogh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
Mateusz [Fri, 28 Oct 2022 23:31:37 +0000 (01:31 +0200)] 
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)

3 years agogh-84538: add strict argument to pathlib.PurePath.relative_to (GH-19813)
domragusa [Fri, 28 Oct 2022 23:20:14 +0000 (01:20 +0200)] 
gh-84538: add strict argument to pathlib.PurePath.relative_to (GH-19813)

By default, :meth:`pathlib.PurePath.relative_to` doesn't deal with paths that are not a direct prefix of the other, raising an exception in that instance. This change adds a *walk_up* parameter that can be set to allow for using ``..`` to calculate the relative path.

example:
```
>>> p = PurePosixPath('/etc/passwd')
>>> p.relative_to('/etc')
PurePosixPath('passwd')
>>> p.relative_to('/usr')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pathlib.py", line 940, in relative_to
    raise ValueError(error_message.format(str(self), str(formatted)))
ValueError: '/etc/passwd' does not start with '/usr'
>>> p.relative_to('/usr', strict=False)
PurePosixPath('../etc/passwd')
```

https://bugs.python.org/issue40358

Automerge-Triggered-By: GH:brettcannon
3 years agoFix typo in contextvars docs (#98823)
cburroughs [Fri, 28 Oct 2022 21:13:48 +0000 (17:13 -0400)] 
Fix typo in contextvars docs (#98823)

3 years agogh-92452: Avoid race in initialization of sysconfig._CONFIG_VARS
Gareth Rees [Fri, 28 Oct 2022 18:17:04 +0000 (19:17 +0100)] 
gh-92452: Avoid race in initialization of sysconfig._CONFIG_VARS

Co-authored-by: Filipe Laíns <lains@riseup.net>
3 years ago`argparse` docs: normalize constant references (#98765)
Skip Montanaro [Fri, 28 Oct 2022 12:15:39 +0000 (07:15 -0500)] 
`argparse` docs: normalize constant references (#98765)

3 years agogh-98776: Fix make regen-test-levenshtein for out-of-tree builds (GH-98779)
Miro Hrončok [Fri, 28 Oct 2022 11:31:33 +0000 (13:31 +0200)] 
gh-98776: Fix make regen-test-levenshtein for out-of-tree builds (GH-98779)

Fixes https://github.com/python/cpython/issues/98776

Automerge-Triggered-By: GH:erlend-aasland
3 years agogh-98657: [docs] `array.typecodes` is a module-level attribute (#98729)
Nikita Sobolev [Fri, 28 Oct 2022 10:26:01 +0000 (13:26 +0300)] 
gh-98657: [docs] `array.typecodes` is a module-level attribute (#98729)

* gh-98657: [docs] `array.typecodes` is a module-level attribute

* Update array.rst

3 years agogh-65002: Make note that null bytes are used to pad bytes (#98635)
Stanley [Fri, 28 Oct 2022 10:21:28 +0000 (03:21 -0700)] 
gh-65002: Make note that null bytes are used to pad bytes (#98635)

3 years agogh-98745: Allow py.exe launcher to install 3.11 by default and 3.12 on request (GH...
Steve Dower [Fri, 28 Oct 2022 09:12:22 +0000 (10:12 +0100)] 
gh-98745: Allow py.exe launcher to install 3.11 by default and 3.12 on request (GH-98780)

3 years agogh-98624 Add mutex to unittest.mock.NonCallableMock (#98688)
noah-weingarden [Fri, 28 Oct 2022 07:51:18 +0000 (03:51 -0400)] 
gh-98624 Add mutex to unittest.mock.NonCallableMock (#98688)

* Added lock to NonCallableMock in unittest.mock

* Add blurb

* Nitpick blurb

* Edit comment based on @Jason-Y-Z's review

* Add link to GH issue

3 years agogh-98789: Fix FOR_ITER assert on big-endian (GH-98792)
Dennis Sweeney [Fri, 28 Oct 2022 06:42:39 +0000 (02:42 -0400)] 
gh-98789: Fix FOR_ITER assert on big-endian (GH-98792)

Fix FOR_ITER assertion syntax

3 years agogh-98739: Update libexpat from 2.4.9 to 2.5.0 (#98742)
Shaun Walbridge [Thu, 27 Oct 2022 20:45:12 +0000 (16:45 -0400)] 
gh-98739: Update libexpat from 2.4.9 to 2.5.0 (#98742)

* Update libexpat from 2.4.9 to 2.5.0 to address CVE-2022-43680.

Co-authored-by: Shaun Walbridge <shaun.walbridge@gmail.com>
3 years agoobmalloc: Remove unused variable. (GH-98770)
Benjamin Peterson [Thu, 27 Oct 2022 16:06:49 +0000 (09:06 -0700)] 
obmalloc: Remove unused variable. (GH-98770)

3 years agogh-96143: Improve perf profiler docs (#96445)
Erlend E. Aasland [Thu, 27 Oct 2022 13:06:48 +0000 (15:06 +0200)] 
gh-96143: Improve perf profiler docs (#96445)

3 years agoGH-96793: Change `FOR_ITER` to not pop the iterator on exhaustion. (GH-96801)
Mark Shannon [Thu, 27 Oct 2022 10:55:03 +0000 (03:55 -0700)] 
GH-96793: Change `FOR_ITER` to not pop the iterator on exhaustion. (GH-96801)

Change FOR_ITER to have the same stack effect regardless of whether it branches or not.
Performance is unchanged as FOR_ITER (and specialized forms jump over the cleanup code).

3 years agogh-98586: Add vector call APIs to the Limited API (GH-98587)
Wenzel Jakob [Thu, 27 Oct 2022 09:45:42 +0000 (11:45 +0200)] 
gh-98586: Add vector call APIs to the Limited API (GH-98587)

Expose the facilities for making vector calls through Python's limited API.

3 years agoPython documents state elsewhere that a comma is not an operator, so … (GH-98736)
Gerardwx [Thu, 27 Oct 2022 06:33:42 +0000 (02:33 -0400)] 
Python documents state elsewhere that a comma is not an operator, so … (GH-98736)

…calling it an operator here is confusing. See https://docs.python.org/3/reference/lexical_analysis.html#operators and https://docs.python.org/3/faq/programming.html#id22.

3 years agogh-98627: Use a Switch in PyModule_FromDefAndSpec2() (gh-98734)
Eric Snow [Thu, 27 Oct 2022 03:20:54 +0000 (21:20 -0600)] 
gh-98627: Use a Switch in PyModule_FromDefAndSpec2() (gh-98734)

This helps simplify some changes in follow-up PRs.  It also matches what we're doing in PyModule_ExecDef().

3 years agogh-98703: Add tests for closing `_ProactorSocketTransport` with proactor event loop...
Kumar Aditya [Thu, 27 Oct 2022 03:07:31 +0000 (08:37 +0530)] 
gh-98703: Add tests for closing `_ProactorSocketTransport` with proactor event loop (GH-98730)

3 years agogh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple times...
Ken Jin [Thu, 27 Oct 2022 02:37:12 +0000 (10:37 +0800)] 
gh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple times (GH-98704)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agogh-94808: cover `PyFunction_GetDefaults` and `PyFunction_SetDefaults` (#98449)
Nikita Sobolev [Thu, 27 Oct 2022 00:47:29 +0000 (03:47 +0300)] 
gh-94808: cover `PyFunction_GetDefaults` and `PyFunction_SetDefaults` (#98449)

3 years agoFix readline.c compiler warning. (GH-98738)
Benjamin Peterson [Wed, 26 Oct 2022 22:53:25 +0000 (15:53 -0700)] 
Fix readline.c compiler warning. (GH-98738)

```
Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    completer_word_break_characters =
                                    ^
```

3 years agogh-98741: Remove useless check_home usage from is_python_build usage (GH-98743)
Henry Schreiner [Wed, 26 Oct 2022 21:40:47 +0000 (17:40 -0400)] 
gh-98741: Remove useless check_home usage from is_python_build usage (GH-98743)

3 years agogh-98727: Remove old style classes from `test_cmath` (GH-98728)
Nikita Sobolev [Wed, 26 Oct 2022 18:08:34 +0000 (21:08 +0300)] 
gh-98727: Remove old style classes from `test_cmath` (GH-98728)

3 years agogh-98608: Change _Py_NewInterpreter() to _Py_NewInterpreterFromConfig() (gh-98609)
Eric Snow [Wed, 26 Oct 2022 17:16:30 +0000 (11:16 -0600)] 
gh-98608: Change _Py_NewInterpreter() to _Py_NewInterpreterFromConfig() (gh-98609)

(see https://github.com/python/cpython/issues/98608)

This change does the following:

1. change the argument to a new `_PyInterpreterConfig` struct
2. rename the function to `_Py_NewInterpreterFromConfig()`, inspired by `Py_InitializeFromConfig()` (takes a `_PyInterpreterConfig`  instead of `isolated_subinterpreter`)
3. split up the boolean `isolated_subinterpreter` into the corresponding multiple granular settings
   * allow_fork
   * allow_subprocess
   * allow_threads
4. add `PyInterpreterState.feature_flags` to store those settings
5. add a function for checking if a feature is enabled on an opaque `PyInterpreterState *`
6. drop `PyConfig._isolated_interpreter`

The existing default (see `Py_NewInterpeter()` and `Py_Initialize*()`) allows fork, subprocess, and threads and the optional "isolated" interpreter (see the `_xxsubinterpreters` module) disables all three.  None of that changes here; the defaults are preserved.

Note that the given `_PyInterpreterConfig` will not be used outside `_Py_NewInterpreterFromConfig()`, nor preserved.  This contrasts with how `PyConfig` is currently preserved, used, and even modified outside `Py_InitializeFromConfig()`.  I'd rather just avoid that mess from the start for `_PyInterpreterConfig`.  We can preserve it later if we find an actual need.

This change allows us to follow up with a number of improvements (e.g. stop disallowing subprocess and support disallowing exec instead).

(Note that this PR adds "private" symbols.  We'll probably make them public, and add docs, in a separate change.)

3 years agoFix small typo in the removed/deprecated section of the 3.11 whats new (GH-98722)
Pablo Galindo Salgado [Wed, 26 Oct 2022 17:05:00 +0000 (18:05 +0100)] 
Fix small typo in the removed/deprecated section of the 3.11 whats new (GH-98722)

3 years agogh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (#98720)
Erlend E. Aasland [Wed, 26 Oct 2022 14:53:46 +0000 (16:53 +0200)] 
gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (#98720)

3 years agogh-98644: point people to tomllib from configparser’s docs (#98645)
Philipp A [Wed, 26 Oct 2022 14:06:20 +0000 (16:06 +0200)] 
gh-98644: point people to tomllib from configparser’s docs (#98645)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agogh-98713: Use `@cpython_only` for a test that fails on PyPy (#98714)
Nikita Sobolev [Wed, 26 Oct 2022 13:15:39 +0000 (16:15 +0300)] 
gh-98713: Use `@cpython_only` for a test that fails on PyPy (#98714)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agogh-90716: add _pylong.py module (#96673)
Neil Schemenauer [Wed, 26 Oct 2022 05:00:50 +0000 (22:00 -0700)] 
gh-90716: add _pylong.py module (#96673)

Add Python implementations of certain longobject.c functions. These use
asymptotically faster algorithms that can be used for operations on
integers with many digits. In those cases, the performance overhead of
the Python implementation is not significant since the asymptotic
behavior is what dominates runtime. Functions provided by this module
should be considered private and not part of any public API.

Co-author: Tim Peters <tim.peters@gmail.com>
Co-author: Mark Dickinson <dickinsm@gmail.com>
Co-author: Bjorn Martinsson

3 years agogh-94808: cover `PyMapping_HasKeyString` and `PyMapping_HasKey` (#98486)
Nikita Sobolev [Wed, 26 Oct 2022 04:33:32 +0000 (07:33 +0300)] 
gh-94808: cover `PyMapping_HasKeyString` and `PyMapping_HasKey` (#98486)

3 years agogh-98348: Mention ReferenceError in weakref.proxy documentation (#98355)
fancidev [Wed, 26 Oct 2022 03:48:24 +0000 (11:48 +0800)] 
gh-98348: Mention ReferenceError in weakref.proxy documentation (#98355)

3 years agodocs: Change links to label refs (#98454)
Stanley [Wed, 26 Oct 2022 03:26:28 +0000 (20:26 -0700)] 
docs: Change links to label refs (#98454)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agogh-77753: Add example for values that compare equal in stdtypes (#98497)
Stanley [Wed, 26 Oct 2022 02:54:27 +0000 (19:54 -0700)] 
gh-77753: Add example for values that compare equal in stdtypes (#98497)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agogh-84747: Add `async for` comment for StreamReader (#98633)
Stanley [Wed, 26 Oct 2022 02:16:18 +0000 (19:16 -0700)] 
gh-84747: Add `async for` comment for StreamReader (#98633)

3 years agofix a typo in whatsnew/3.11 (#98603)
July Tikhonov [Tue, 25 Oct 2022 23:42:54 +0000 (02:42 +0300)] 
fix a typo in whatsnew/3.11 (#98603)

3 years agogh-94808: Improve coverage of `unicode_find` and `unicode_rfind` (#98648)
Nikita Sobolev [Tue, 25 Oct 2022 23:37:53 +0000 (02:37 +0300)] 
gh-94808: Improve coverage of `unicode_find` and `unicode_rfind` (#98648)

3 years agoFix typos in deprecation section of 3.11 What's New (#98628)
Jacob Walls [Tue, 25 Oct 2022 23:35:53 +0000 (19:35 -0400)] 
Fix typos in deprecation section of 3.11 What's New (#98628)

3 years agogh-97937: dis docs: add adaptive=False (#97939)
Jelle Zijlstra [Tue, 25 Oct 2022 22:58:04 +0000 (15:58 -0700)] 
gh-97937: dis docs: add adaptive=False (#97939)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
3 years agogh-91058: Add error suggestions to 'import from' import errors (#98305)
Pablo Galindo Salgado [Tue, 25 Oct 2022 22:56:59 +0000 (23:56 +0100)] 
gh-91058: Add error suggestions to 'import from' import errors (#98305)

3 years agogh-96143: Move the perf trampoline files to the Python directory (#98675)
Pablo Galindo Salgado [Tue, 25 Oct 2022 22:34:22 +0000 (23:34 +0100)] 
gh-96143: Move the perf trampoline files to the Python directory (#98675)

3 years agogh-94328: Update Windows installer to use SQLite 3.39.4 (#98640)
Erlend E. Aasland [Tue, 25 Oct 2022 18:27:21 +0000 (20:27 +0200)] 
gh-94328: Update Windows installer to use SQLite 3.39.4 (#98640)

3 years agoUpdate build status links in contributing doc (GH-98672)
Zachary Ware [Tue, 25 Oct 2022 17:13:37 +0000 (12:13 -0500)] 
Update build status links in contributing doc (GH-98672)

3 years agoUpdate link to supported versions table in security policy (GH-98670)
Zachary Ware [Tue, 25 Oct 2022 16:59:19 +0000 (11:59 -0500)] 
Update link to supported versions table in security policy (GH-98670)

3 years agogh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example...
Eclips4 [Tue, 25 Oct 2022 15:32:52 +0000 (18:32 +0300)] 
gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example (#98605)

3 years agoGH-87390: Add remaining tests for PEP 646 (#98267)
Matthew Rahtz [Tue, 25 Oct 2022 14:44:30 +0000 (15:44 +0100)] 
GH-87390: Add remaining tests for PEP 646 (#98267)

Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
3 years agogh-98623: Fix base classes in `typing.rst` (#98626)
Nikita Sobolev [Tue, 25 Oct 2022 14:06:13 +0000 (17:06 +0300)] 
gh-98623: Fix base classes in `typing.rst` (#98626)

3 years agoUse more precise exception types in `assertRaises` in typing tests (#98650)
Nikita Sobolev [Tue, 25 Oct 2022 13:33:34 +0000 (16:33 +0300)] 
Use more precise exception types in `assertRaises` in typing tests (#98650)

3 years agogh-93696: Locate frozen module source with __file__ (#93697)
James Gerity [Tue, 25 Oct 2022 13:22:53 +0000 (09:22 -0400)] 
gh-93696: Locate frozen module source with __file__ (#93697)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agogh-95913: Prepare Improved Modules in 3.11 WhatsNew for final edits (#98631)
C.A.M. Gerlach [Tue, 25 Oct 2022 13:19:44 +0000 (08:19 -0500)] 
gh-95913: Prepare Improved Modules in 3.11 WhatsNew for final edits (#98631)

* Add two line breaks and ref target labels to remaining subsections

* Fix a few out of order Improved Modules

* Fix a few minor textual formatting issues in sections

* Fix remaining Sphinx warnings in the Improved Modules section

3 years agogh-98461: Fix location of RETURN_VALUE in async generator bytecode. compiler_jump_if...
Irit Katriel [Tue, 25 Oct 2022 11:26:26 +0000 (12:26 +0100)] 
gh-98461: Fix location of RETURN_VALUE in async generator bytecode. compiler_jump_if no longer needs a pointer to the loc. (GH-98494)

3 years agogh-94328: Update macOS installer to use SQLite 3.39.4. (#98639)
Erlend E. Aasland [Tue, 25 Oct 2022 10:49:44 +0000 (12:49 +0200)] 
gh-94328: Update macOS installer to use SQLite 3.39.4. (#98639)

3 years agoPost 3.12.0a1
Thomas Wouters [Tue, 25 Oct 2022 02:17:18 +0000 (04:17 +0200)] 
Post 3.12.0a1

3 years agoPython 3.12.0a1 v3.12.0a1
Thomas Wouters [Mon, 24 Oct 2022 22:07:03 +0000 (00:07 +0200)] 
Python 3.12.0a1

3 years agoGH-89237: fix hang in proactor `subprocess.wait_closed()` (#98572)
Kumar Aditya [Mon, 24 Oct 2022 20:21:42 +0000 (01:51 +0530)] 
GH-89237: fix hang in proactor `subprocess.wait_closed()` (#98572)

3 years agogh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports subscripting...
Nikita Sobolev [Mon, 24 Oct 2022 18:10:25 +0000 (21:10 +0300)] 
gh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports subscripting" (#98508)

3 years agoGH-91635: clarify docs about closing of transport in asyncio (#98563)
Kumar Aditya [Mon, 24 Oct 2022 17:52:02 +0000 (23:22 +0530)] 
GH-91635: clarify docs about closing of transport in asyncio  (#98563)

3 years agoGH-98407: fix `test_kill_issue43884` to not leak child processes (#98491)
Kumar Aditya [Mon, 24 Oct 2022 17:50:35 +0000 (23:20 +0530)] 
GH-98407: fix `test_kill_issue43884` to not leak child processes  (#98491)

3 years agogh-98500: Fix typing docs for `*View` classes (#98511)
Nikita Sobolev [Mon, 24 Oct 2022 17:47:32 +0000 (20:47 +0300)] 
gh-98500: Fix typing docs for `*View` classes (#98511)

3 years agogh-95913: Fix grammar for SpooledTemporaryFile 3.11 whatsnew entry (#98604)
Jelle Zijlstra [Mon, 24 Oct 2022 16:45:43 +0000 (09:45 -0700)] 
gh-95913: Fix grammar for SpooledTemporaryFile 3.11 whatsnew entry (#98604)

Followup from #98312.

3 years agogh-97909: Mark up members of PyMemberDef (GH-98473)
Johnny11502 [Mon, 24 Oct 2022 14:13:38 +0000 (10:13 -0400)] 
gh-97909: Mark up members of PyMemberDef (GH-98473)

Co-authored-by: T <tnie@tuta.io>
3 years agogh-95913: Fix, sort & expand pending removal sect in 3.11 WhatsNew (GH-98583)
C.A.M. Gerlach [Mon, 24 Oct 2022 13:35:28 +0000 (08:35 -0500)] 
gh-95913: Fix, sort & expand pending removal sect in 3.11 WhatsNew (GH-98583)

* Fix names/references of pending removal APIs

* Sort list of APIs pending removal alphabetically

* Add missing modules/submodules pending removal in 3.12

* Add table of unittest deprecated aliases to 3.11 What's New

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 years agogh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (#98312)
C.A.M. Gerlach [Mon, 24 Oct 2022 13:05:14 +0000 (08:05 -0500)] 
gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (#98312)

3 years agogh-95913: Edit & expand Deprecated section of 3.11 WhatsNew (#98581)
C.A.M. Gerlach [Mon, 24 Oct 2022 12:58:27 +0000 (07:58 -0500)] 
gh-95913: Edit & expand Deprecated section of 3.11 WhatsNew (#98581)

* Refine Sphinx syntax and grammar/phrasing in Deprecated section items
* Organize into lang/builtins, modules & stdlib sections
* Convert PEP 594 module list into a grid to not waste as much space
* Add importlib.resources deprecated functions to section

3 years agogh-95913: Edit, expand & format Bytecode sect in 3.11 WhatsNew (GH-98559)
C.A.M. Gerlach [Mon, 24 Oct 2022 12:51:25 +0000 (07:51 -0500)] 
gh-95913: Edit, expand & format Bytecode sect in 3.11 WhatsNew (GH-98559)

3 years agogh-95913: Edit, link and sort 3.11 WhatsNew Build section (#98588)
C.A.M. Gerlach [Mon, 24 Oct 2022 12:34:05 +0000 (07:34 -0500)] 
gh-95913: Edit, link and sort 3.11 WhatsNew Build section (#98588)

3 years agogh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (#98585)
C.A.M. Gerlach [Mon, 24 Oct 2022 12:33:31 +0000 (07:33 -0500)] 
gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (#98585)

3 years agogh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (#98584)
C.A.M. Gerlach [Mon, 24 Oct 2022 12:33:16 +0000 (07:33 -0500)] 
gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (#98584)

3 years agogh-95913 Add string section to Whatsnew with new Template methods (#98311)
C.A.M. Gerlach [Mon, 24 Oct 2022 12:33:04 +0000 (07:33 -0500)] 
gh-95913 Add string section to Whatsnew with new Template methods (#98311)

3 years agogh-91524: Speed up the regular expression substitution (#91525)
Serhiy Storchaka [Sun, 23 Oct 2022 22:57:30 +0000 (01:57 +0300)] 
gh-91524: Speed up the regular expression substitution (#91525)

Functions re.sub() and re.subn() and corresponding re.Pattern methods
are now 2-3 times faster for replacement strings containing group references.

Closes #91524

Primarily authored by serhiy-storchaka Serhiy Storchaka
Minor-cleanups-by: Gregory P. Smith [Google] <greg@krypto.org>
3 years agoUpdate Mac installer messages to 3.12 alpha (GH-98575)
Ned Deily [Sun, 23 Oct 2022 20:36:53 +0000 (16:36 -0400)] 
Update Mac installer messages to 3.12 alpha (GH-98575)

3 years agogh-98561: Fix a typo in typing (GH-98562)
Omkaar [Sun, 23 Oct 2022 14:05:08 +0000 (19:35 +0530)] 
gh-98561: Fix a typo in typing (GH-98562)

3 years agono-issue: typo fix in c-api/tuple.rst (gh-98560)
wim glenn [Sun, 23 Oct 2022 10:46:56 +0000 (05:46 -0500)] 
no-issue: typo fix in c-api/tuple.rst (gh-98560)

3 years agogh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457)
Noam Cohen [Sun, 23 Oct 2022 05:23:40 +0000 (08:23 +0300)] 
gh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457)

3 years agogh-95913: Edit & expand Optimizations in 3.11 WhatsNew (#98426)
C.A.M. Gerlach [Sat, 22 Oct 2022 19:14:11 +0000 (14:14 -0500)] 
gh-95913: Edit & expand Optimizations in 3.11 WhatsNew (#98426)

3 years agogh-95913: Copyedit & xref FrameInfo in Whatsnew inspect section (#98304)
C.A.M. Gerlach [Sat, 22 Oct 2022 19:12:04 +0000 (14:12 -0500)] 
gh-95913: Copyedit & xref FrameInfo in Whatsnew inspect section (#98304)

3 years agoGH-98539: fix ref cycle in `_SSLProtocolTransport` after close (#98540)
Kumar Aditya [Sat, 22 Oct 2022 16:11:27 +0000 (21:41 +0530)] 
GH-98539: fix ref cycle in `_SSLProtocolTransport` after close  (#98540)

3 years agoGH-98543: Fix `asyncio.TaskGroup` to not keep reference to errors after raising...
Kumar Aditya [Sat, 22 Oct 2022 16:05:11 +0000 (21:35 +0530)] 
GH-98543: Fix `asyncio.TaskGroup`  to not keep reference to errors after raising ExceptionGroup  (#98544)

3 years agoGH-98363: Slicing isn't necessary. A size reduction will suffice. (GH-98538)
Raymond Hettinger [Sat, 22 Oct 2022 12:21:06 +0000 (07:21 -0500)] 
GH-98363: Slicing isn't necessary. A size reduction will suffice. (GH-98538)

3 years agoFix typo in news entry (#98361)
Ikko Ashimine [Sat, 22 Oct 2022 11:59:12 +0000 (20:59 +0900)] 
Fix typo in news entry (#98361)

ouput -> output

3 years ago[Enum docs]: fix order of arguments to isinstance() (#98542)
Clément Robert [Sat, 22 Oct 2022 11:29:00 +0000 (13:29 +0200)] 
[Enum docs]: fix order of arguments to isinstance() (#98542)

3 years agoGH-98363: Use better accessor macro (#98535)
Raymond Hettinger [Fri, 21 Oct 2022 23:44:49 +0000 (18:44 -0500)] 
GH-98363: Use better accessor macro (#98535)

3 years agogh-51511: Note that codecs.open()'s encoding parameter affects automatic conversion...
Stanley [Fri, 21 Oct 2022 23:01:05 +0000 (16:01 -0700)] 
gh-51511: Note that codecs.open()'s encoding parameter affects automatic conversion to binary mode (#94370)

3 years agobpo-2716: add license for audioop module (#19972)
Furkan Onder [Fri, 21 Oct 2022 22:43:20 +0000 (01:43 +0300)] 
bpo-2716: add license for audioop module (#19972)

3 years agogh-98298: [Enum] document ReprEnum, global_enum, and show_flag_values (GH-98455)
Ethan Furman [Fri, 21 Oct 2022 22:36:41 +0000 (15:36 -0700)] 
gh-98298: [Enum] document ReprEnum, global_enum, and show_flag_values (GH-98455)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agoGH-98363: Fix exception handling in batched() (GH-98523)
Raymond Hettinger [Fri, 21 Oct 2022 17:31:52 +0000 (12:31 -0500)] 
GH-98363:  Fix exception handling in batched() (GH-98523)