]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agogh-95112: Fix What's New 3.11 contribution note periods (GH-95115)
Miss Islington (bot) [Fri, 22 Jul 2022 00:44:54 +0000 (17:44 -0700)] 
gh-95112: Fix What's New 3.11 contribution note periods (GH-95115)

Some are missing, a few placed after the ')'.
(cherry picked from commit 8df8ef974374a3bb3ca3eef1ee676f7f173dad5c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agogh-95112: Fix What's New 3.10 contribution note periods (GH-95114)
Miss Islington (bot) [Fri, 22 Jul 2022 00:09:14 +0000 (17:09 -0700)] 
gh-95112: Fix What's New 3.10 contribution note periods (GH-95114)

Some are missing, a few placed after the ')'.
One ') was missing.
(cherry picked from commit c944649ffc06f155acea8454f9449fdccad0a74e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agogh-95105: Return Iterator from wsgiref.types.InputStream.__iter__ (GH-95106)
Miss Islington (bot) [Thu, 21 Jul 2022 20:52:11 +0000 (13:52 -0700)] 
gh-95105: Return Iterator from wsgiref.types.InputStream.__iter__ (GH-95106)

(cherry picked from commit b4378948a066821ce5147940ce3c1a80bc018b3c)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years agogh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096)
Miss Islington (bot) [Thu, 21 Jul 2022 19:11:07 +0000 (12:11 -0700)] 
gh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096)

The wrapper macros are more readable and match the form recommended in
the OpenSSL documentation. They also slightly less error-prone, as the
mapping of arguments to SSL_CTX_ctrl is not always clear. (Though in
this case it's straightforward.)
https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_get_max_proto_version.html
(cherry picked from commit 936f71e5d4f50f2238b0320d44f7fb5f88e39809)

Co-authored-by: David Benjamin <davidben@davidben.net>
3 years ago[3.11] GH-95060: Fix PyCode_Addr2Location when addrq < 0 (GH-95094)
Miss Islington (bot) [Thu, 21 Jul 2022 15:23:06 +0000 (08:23 -0700)] 
[3.11] GH-95060: Fix PyCode_Addr2Location when addrq < 0 (GH-95094)

(cherry picked from commit a6daaf2a132efbb1965b4502ff8a8cf3b5afed0e)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
3 years agogh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_...
Miss Islington (bot) [Thu, 21 Jul 2022 13:01:05 +0000 (06:01 -0700)] 
gh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_watcher (GH-95009)

The test was never run, because it was missing the TestCase class.
The test failed because the wrong attribute was patched.
(cherry picked from commit 834bd5dd766cf212fb20d65d8a046c62a33006d4)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
3 years agoGH-95029: Describe Windows Store package isolation and redirection in more detail...
Miss Islington (bot) [Thu, 21 Jul 2022 00:11:01 +0000 (17:11 -0700)] 
GH-95029: Describe Windows Store package isolation and redirection in more detail (GH-95030)

(cherry picked from commit b1924b10069fb797845284552fb9da931b1ffdb9)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
3 years agogh-90654: Remove unneeded blank line (GH-95044) (#95047)
Miss Islington (bot) [Wed, 20 Jul 2022 22:03:35 +0000 (15:03 -0700)] 
gh-90654: Remove unneeded blank line (GH-95044) (#95047)

(cherry picked from commit bd390ef825c5f2ad86e0966173a6bcaca85a56f2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years ago[3.11] GH-91409: Don't overwrite valid locations with NOP locations (GH-95067) (GH...
Brandt Bucher [Wed, 20 Jul 2022 22:01:42 +0000 (15:01 -0700)] 
[3.11] GH-91409: Don't overwrite valid locations with NOP locations (GH-95067) (GH-95068)

(cherry picked from commit 742d4614e1a645d765dbf76c19bd9a818239b1cb)

3 years agogh-54781: Move NEWS item to Tests, and improve wording (GH-95063)
Miss Islington (bot) [Wed, 20 Jul 2022 19:33:38 +0000 (12:33 -0700)] 
gh-54781: Move NEWS item to Tests, and improve wording (GH-95063)

(cherry picked from commit 8ede67cdcf36d5f6988cb935a6f85a1e14196f78)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94998: Remove redundant condition in test_sqlite3/__main__.py (GH-95052)
Miss Islington (bot) [Wed, 20 Jul 2022 17:01:58 +0000 (10:01 -0700)] 
gh-94998: Remove redundant condition in test_sqlite3/__main__.py (GH-95052)

(cherry picked from commit 9d09e7b0263c248659f3b4a2c597fca9ac4f8f91)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94844: Add pathlib support to shutil archive management (GH-94846)
Miss Islington (bot) [Wed, 20 Jul 2022 16:19:35 +0000 (09:19 -0700)] 
gh-94844: Add pathlib support to shutil archive management (GH-94846)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
(cherry picked from commit ed4441567ec480d1e4d8f982bd1f7347e4d03c42)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years agoGH-94851: fix immortal objects refcounting in compiler (gh-95040)
Miss Islington (bot) [Wed, 20 Jul 2022 10:42:05 +0000 (03:42 -0700)] 
GH-94851: fix immortal objects refcounting in compiler (gh-95040)

(cherry picked from commit 74761548862eb5a324c23d86a6233d884f386f2e)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agogh-90654: Add item missing from idlelib/NEWS.txt (GH-95038)
Miss Islington (bot) [Wed, 20 Jul 2022 07:43:27 +0000 (00:43 -0700)] 
gh-90654: Add item missing from idlelib/NEWS.txt (GH-95038)

(cherry picked from commit acb105a7c1f435f93fee08e292ee12438f716abd)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agogh-93939: Use new MODULE_name_STATE in wasm_assets script (GH-95035)
Miss Islington (bot) [Wed, 20 Jul 2022 07:17:52 +0000 (00:17 -0700)] 
gh-93939: Use new MODULE_name_STATE in wasm_assets script (GH-95035)

(cherry picked from commit 0f34c7e2d3163525813dbd644f30db58e6d36af2)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agoGH-90699: fix ref counting of static immortal strings (gh-94850)
Miss Islington (bot) [Wed, 20 Jul 2022 06:56:47 +0000 (23:56 -0700)] 
GH-90699: fix ref counting of static immortal strings (gh-94850)

(cherry picked from commit 1834133e66d95a143c9df5f068b3109927aefd65)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years ago[3.11] Remove blurb boilerplate from news item(#95033) (#95036)
Terry Jan Reedy [Wed, 20 Jul 2022 06:23:28 +0000 (02:23 -0400)] 
[3.11] Remove blurb boilerplate from news item(#95033) (#95036)

Cherry-picked from 88e4eeba25df999866b23448b95dce2769c2da86

3 years agogh-91256: Ensure help text has the program name even before getpath is called (GH...
Miss Islington (bot) [Tue, 19 Jul 2022 19:03:15 +0000 (12:03 -0700)] 
gh-91256: Ensure help text has the program name even before getpath is called (GH-94929)

(cherry picked from commit 49aeff49d71fa4bd935212340410311f13879447)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agoGH-91153: Handle mutating __index__ methods in bytearray item assignment (GH-94891)
Miss Islington (bot) [Tue, 19 Jul 2022 17:12:39 +0000 (10:12 -0700)] 
GH-91153: Handle mutating __index__ methods in bytearray item assignment (GH-94891)

(cherry picked from commit f36589510b8708fa224d799d5b328deab558aa4e)

Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
3 years agoRemove out of date reference to YIELD_FROM from docs. (GH-94966) (GH-94975)
Miss Islington (bot) [Tue, 19 Jul 2022 11:58:44 +0000 (04:58 -0700)] 
Remove out of date reference to YIELD_FROM from docs. (GH-94966) (GH-94975)

(cherry picked from commit c41d4d09172bf28ba9e5760498bd494a3521a123)

Co-authored-by: Mark Shannon <mark@hotpy.org>
Co-authored-by: Mark Shannon <mark@hotpy.org>
3 years agotest_concurrent_futures: Fix unneeded/confusing format call (GH-93119)
Miss Islington (bot) [Tue, 19 Jul 2022 02:42:19 +0000 (19:42 -0700)] 
test_concurrent_futures: Fix unneeded/confusing format call (GH-93119)

Added in 339fd46cb764277cbbdc3e78dcc5b45b156bb6ae - but as noted in a comment, the test only tests ThreadPoolExecutor.
(cherry picked from commit 3f2dd0a7c0b1a5112f2164dce78fcfaa0c4b39c7)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
3 years agogh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-94950)
Miss Islington (bot) [Mon, 18 Jul 2022 21:57:45 +0000 (14:57 -0700)] 
gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-94950)

* gh-94949: Disallow parsing parenthesised ctx manager with old feature_version

* 📜🤖 Added by blurb_it.

* Allow it with feature_version=(3, 9) as well

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 0daba822212cd5d6c63384a27f390f0945330c2b)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years agoRevert "gh-93910: [Enum] restore member.member restriction while keeping performance...
Ethan Furman [Mon, 18 Jul 2022 20:56:21 +0000 (13:56 -0700)] 
Revert "gh-93910: [Enum] restore member.member restriction while keeping performance boost (GH-94913)" (#94981)

This reverts commit 30f28ac296e506b336e0ab56c41422a53c36d0c2.

3 years ago[3.11] GH-94822: Don't specialize when metaclasses are involved (GH-94892) (GH-94980)
Brandt Bucher [Mon, 18 Jul 2022 18:55:07 +0000 (11:55 -0700)] 
[3.11] GH-94822: Don't specialize when metaclasses are involved (GH-94892) (GH-94980)

(cherry picked from commit daf68ba92f315bfd239a0c993f9f683fb90325fb)

Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
3 years agoFix incorrect double indent in ast doc (GH-94976)
Miss Islington (bot) [Mon, 18 Jul 2022 17:34:09 +0000 (10:34 -0700)] 
Fix incorrect double indent in ast doc (GH-94976)

Warning directive indent was 4 rather than 3 spaces.
(cherry picked from commit a25a803c4c452c70da11be3e80004b47646bff4c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agoIn ast doc, update 'below' to 'above' (GH-94967)
Miss Islington (bot) [Mon, 18 Jul 2022 16:46:26 +0000 (09:46 -0700)] 
In ast doc, update 'below' to 'above' (GH-94967)

The included asdl file was moved from 'below' to 'above' in 3.9.
(cherry picked from commit 7b617be4ab6df871cfa9d2127908cb1373578dc0)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agogh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931)
Miss Islington (bot) [Mon, 18 Jul 2022 15:41:22 +0000 (08:41 -0700)] 
gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931)

(cherry picked from commit 067f0da33506f70c36a67d5f3d8d011c8dae10c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agoGH-94857: fix test_io refleak (GH-94858)
Miss Islington (bot) [Mon, 18 Jul 2022 14:17:55 +0000 (07:17 -0700)] 
GH-94857: fix test_io refleak (GH-94858)

(cherry picked from commit 631160c262b40bf4ce3da6cd7bbb972ae2e9fc91)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years ago[3.11] gh-94847: Don't force inlining in debug builds of libmpdec (GH-94848) (GH...
Miss Islington (bot) [Mon, 18 Jul 2022 12:42:42 +0000 (05:42 -0700)] 
[3.11] gh-94847: Don't force inlining in debug builds of libmpdec (GH-94848) (GH-94951)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agogh-94947: Disallow parsing walrus with feature_version < (3, 8) (GH-94948)
Miss Islington (bot) [Mon, 18 Jul 2022 09:46:21 +0000 (02:46 -0700)] 
gh-94947: Disallow parsing walrus with feature_version < (3, 8) (GH-94948)

* gh-94947: Disallow parsing walrus with feature_version < (3, 8)

* oops, commit the parser

* 📜🤖 Added by blurb_it.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit ae0be5a53bb4caee3de4888341addd9c94133f2d)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years ago[3.11] gh-94801: Use custom flags to check for headers and libs (GH-94802) (GH-94881)
Christian Heimes [Mon, 18 Jul 2022 06:46:49 +0000 (08:46 +0200)] 
[3.11] gh-94801: Use custom flags to check for headers and libs (GH-94802) (GH-94881)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agogh-94601: [Enum] fix inheritance for __str__ and friends (GH-94942)
Miss Islington (bot) [Mon, 18 Jul 2022 02:18:41 +0000 (19:18 -0700)] 
gh-94601: [Enum] fix inheritance for __str__ and friends (GH-94942)

(cherry picked from commit c961d14f85a0e3e53d5ad1182206ef34030f10b8)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
3 years agogh-72889: Remove redundant mock.Mock()._is_coroutine = False workarounds (GH-94926)
Miss Islington (bot) [Sun, 17 Jul 2022 17:49:01 +0000 (10:49 -0700)] 
gh-72889: Remove redundant mock.Mock()._is_coroutine = False workarounds (GH-94926)

(cherry picked from commit 07aeb7405ea42729b95ecae225f1d96a4aea5121)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
3 years agogh-91348: Restore frame argument to sys._getframe audit event (GH-94928)
Miss Islington (bot) [Sun, 17 Jul 2022 15:49:57 +0000 (08:49 -0700)] 
gh-91348: Restore frame argument to sys._getframe audit event (GH-94928)

(cherry picked from commit 044a593cbbe1639e906e06c47504dd1020ddfee4)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agogh-94821: Fix autobind of empty unix domain address (GH-94826)
Miss Islington (bot) [Sun, 17 Jul 2022 15:39:22 +0000 (08:39 -0700)] 
gh-94821: Fix autobind of empty unix domain address (GH-94826)

When binding a unix socket to an empty address on Linux, the socket is
automatically bound to an available address in the abstract namespace.

    >>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
    >>> s.bind("")
    >>> s.getsockname()
    b'\x0075499'

Since python 3.9, the socket is bound to the one address:

    >>> s.getsockname()
    b'\x00'

And trying to bind multiple sockets will fail with:

    Traceback (most recent call last):
      File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind
        s2.bind("")
    OSError: [Errno 98] Address already in use

Added 2 tests:
- Auto binding empty address on Linux
- Failing to bind an empty address on other platforms

Fixes f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
(cherry picked from commit c22f134211743cd5ad14cec1dd4f527bee542b4c)

Co-authored-by: Nir Soffer <nsoffer@redhat.com>
3 years agogh-92348: Add quotes to support building on Windows with spaces in directory name...
Miss Islington (bot) [Sun, 17 Jul 2022 14:46:43 +0000 (07:46 -0700)] 
gh-92348: Add quotes to support building on Windows with spaces in directory name (GH-94925)

(cherry picked from commit 5c19ddab65f91d190ec94c494e95c5d551a45efc)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agogh-94864: Fix PyArg_Parse* with deprecated format units "u" and "Z" (GH-94902)
Serhiy Storchaka [Sun, 17 Jul 2022 05:23:37 +0000 (08:23 +0300)] 
gh-94864: Fix PyArg_Parse* with deprecated format units "u" and "Z" (GH-94902)

It returned 1 (success) when warnings are turned into exceptions.

3 years agogh-93910: [Enum] restore member.member restriction while keeping performance boost...
Miss Islington (bot) [Sun, 17 Jul 2022 04:53:41 +0000 (21:53 -0700)] 
gh-93910: [Enum] restore member.member restriction while keeping performance boost (GH-94913)

(cherry picked from commit c20186c3972ff38577c4c5e32ca86748210983d2)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
3 years agogh-91181: Add a What's New entry for dropping bytes support for `sys.path` (GH-94918)
Miss Islington (bot) [Sun, 17 Jul 2022 02:23:57 +0000 (19:23 -0700)] 
gh-91181: Add a What's New entry for dropping bytes support for `sys.path` (GH-94918)

(cherry picked from commit ec4745b5f2c2a460f12c97243c5b7d875f24b0c8)

Co-authored-by: Brett Cannon <brett@python.org>
3 years agogh-91181: drop support for bytes on sys.path (GH-31934)
Miss Islington (bot) [Sun, 17 Jul 2022 01:31:25 +0000 (18:31 -0700)] 
gh-91181: drop support for bytes on sys.path (GH-31934)

Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it.

Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
(cherry picked from commit 6da988a46c8955755624ad9878288d5214fceb4e)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
3 years agogh-94869: Fix the location in some expressions for multi-line f-string ast nodes...
Miss Islington (bot) [Sat, 16 Jul 2022 19:16:51 +0000 (12:16 -0700)] 
gh-94869: Fix the location in some expressions for multi-line f-string ast nodes (GH-94895)

(cherry picked from commit 2e9da8e3522764d09f1d6054a2be567e91a30812)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agogh-90844: Allow virtual environments to correctly launch when they have spaces in...
Miss Islington (bot) [Sat, 16 Jul 2022 17:11:34 +0000 (10:11 -0700)] 
gh-90844: Allow virtual environments to correctly launch when they have spaces in the path (GH-94903)

(cherry picked from commit 4b4439daed3992a5c5a83b86596d6e00ac3c1203)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agogh-94772: Fix off-by-one error in Windows launcher (GH-94779)
Miss Islington (bot) [Sat, 16 Jul 2022 09:42:08 +0000 (02:42 -0700)] 
gh-94772: Fix off-by-one error in Windows launcher (GH-94779)

(cherry picked from commit 407ff6556cc999d692b264466ad8d32304a09bce)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
3 years agoAdd additional pointers to pathlib's mapping to os.path functions (GH-94828)
Miss Islington (bot) [Fri, 15 Jul 2022 22:21:34 +0000 (15:21 -0700)] 
Add additional pointers to pathlib's mapping to os.path functions (GH-94828)

* Add additional pointers to pathlib's mapping to os.path functions

os.path.splitext has a somewhat quirky signature since it mixes the path and filename components but I wanted the documentation to mention `PurePath.stem` as the natural counterpart to `PurePath.suffix` for the common use of `os.path.splitext` to turn "file.py" into "file" and "py".

Technically this could have some discussion of how to handle the parent directory hierarchy but that seems a bit out of keeping with the spirit of this table so I omitted mentioning `PurePath.parents` here.

* Update Doc/library/pathlib.rst

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 3789c635772fbdeb5d0fc32aa811fd6b1d935a60)

Co-authored-by: Chris Adams <chris@improbable.org>
3 years agogh-94808: Add coverage for boolobject.c:bool_new (GH-94859) (GH-94883)
Miss Islington (bot) [Fri, 15 Jul 2022 17:37:13 +0000 (10:37 -0700)] 
gh-94808: Add coverage for boolobject.c:bool_new (GH-94859) (GH-94883)

`bool_new` had no coverage.

Automerge-Triggered-By: GH:brandtbucher
(cherry picked from commit df4d53a09ab9fd9116d1b52bdc42133e019ca82b)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
3 years ago[3.11] GH-94808: Cover handling non-finite numbers from round when ndigits is provide...
Miss Islington (bot) [Fri, 15 Jul 2022 17:34:18 +0000 (10:34 -0700)] 
[3.11] GH-94808: Cover handling non-finite numbers from round when ndigits is provided (GH-94860) (GH-94882)

(cherry picked from commit 625ba9bdff51baddf9d5e156e5facf05fa1003d6)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Automerge-Triggered-By: GH:brandtbucher
3 years agogh-94814: Improve coverage of _PyCode_CreateLineArray (GH-94852)
Miss Islington (bot) [Fri, 15 Jul 2022 17:28:47 +0000 (10:28 -0700)] 
gh-94814: Improve coverage of _PyCode_CreateLineArray (GH-94852)

The case where there are more than (1 << 15) lines was not covered.

I don't know if increasing test coverage requires a blurb -- let me know if it does.

Automerge-Triggered-By: GH:brandtbucher
(cherry picked from commit 582ae86b3f07d806f145b3eb9009efd9fbf2e041)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
3 years agogh-94731: Revert to C-style casts for _Py_CAST (GH-94782) (#94849)
Miss Islington (bot) [Fri, 15 Jul 2022 07:35:23 +0000 (00:35 -0700)] 
gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) (#94849)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
(cherry picked from commit 6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e)

3 years ago[3.11] [doc] Update cookbook example and add information about queue types. (GH-94854...
Miss Islington (bot) [Fri, 15 Jul 2022 07:19:02 +0000 (00:19 -0700)] 
[3.11] [doc] Update cookbook example and add information about queue types. (GH-94854) (GH-94871)

(cherry picked from commit dc54193095e8ac8d73489f7ab133e016a5556256)

3 years agoGH-46771: docs for asyncio.timeout and task cancellation (GH-94794)
Miss Islington (bot) [Fri, 15 Jul 2022 02:48:03 +0000 (19:48 -0700)] 
GH-46771: docs for asyncio.timeout and task cancellation (GH-94794)

(cherry picked from commit 08f68975abb5bc6b3205f9442b68d97f4ef044db)

Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
3 years agoDocs: fix typo in sqlite3.rst (GH-94798)
Miss Islington (bot) [Thu, 14 Jul 2022 21:56:30 +0000 (14:56 -0700)] 
Docs: fix typo in sqlite3.rst (GH-94798)

Colum -> Column
(cherry picked from commit 9ea72e9d8d9c7ff7c0cec4bacf6071ff4f1f6238)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
3 years agogh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842)
Miss Islington (bot) [Thu, 14 Jul 2022 19:04:06 +0000 (12:04 -0700)] 
gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842)

(cherry picked from commit 9b3f7792093c533608f70043aa2a7daf7f903a16)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
3 years agoGH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298)
Miss Islington (bot) [Thu, 14 Jul 2022 16:47:17 +0000 (09:47 -0700)] 
GH-89988: Fix memory leak in pickle.Pickler dispatch_table lookup (GH-94298)

(cherry picked from commit 01ef1f95dab9c9930ce1a23634a3e5a8331bf3c7)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agoidlelib: replace 'while 1' with 'while True' (GH-94827)
Miss Islington (bot) [Thu, 14 Jul 2022 01:33:29 +0000 (18:33 -0700)] 
idlelib: replace 'while 1' with 'while True' (GH-94827)

(cherry picked from commit 6a15f918b5a6fb5113d5332ebf27df1d5360e66c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years ago[3.11] gh-90359: Unify documentation style for datetime.rst (gh-94836) (gh-94838)
Dong-hee Na [Thu, 14 Jul 2022 00:52:53 +0000 (09:52 +0900)] 
[3.11] gh-90359: Unify documentation style for datetime.rst (gh-94836) (gh-94838)

(cherry picked from commit 967da5febbc77b36a5b14863e61db3a2d441a940)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
3 years agogh-90359: Update documentation to follow PEP 495. (gh-94800)
Miss Islington (bot) [Thu, 14 Jul 2022 00:16:09 +0000 (17:16 -0700)] 
gh-90359: Update documentation to follow PEP 495. (gh-94800)

(cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
3 years agogh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)
Miss Islington (bot) [Wed, 13 Jul 2022 16:40:46 +0000 (09:40 -0700)] 
gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)

Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`).
(cherry picked from commit 4a6bb30eb600e3b18f4a84c1be922c07758c613f)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
3 years agogh-94759: Create LCOV report with branch coverage (GH-94793)
Miss Islington (bot) [Wed, 13 Jul 2022 15:01:15 +0000 (08:01 -0700)] 
gh-94759: Create LCOV report with branch coverage (GH-94793)

(cherry picked from commit f5c02afaff43f4ed7f4ac74d7c90171e56c2b2d7)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agogh-94751: Install, import and run the test C++ extension (MVP) (GH-94754) (#94780)
Miss Islington (bot) [Wed, 13 Jul 2022 09:09:06 +0000 (02:09 -0700)] 
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754) (#94780)

This is a quick-and-dirty way to run the C++ tests.
It can definitely be improved in the future, but it should fail when things go wrong.

- Run test functions on import (yes, this can definitely be improved)
- Fudge setuptools metadata (name & version) to make the extension installable
- Install and import the extension in test_cppext
(cherry picked from commit ec5db539b9df99c8b96149768dc2e8598dce2afa)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 years agoFix typo in _exact_ratio comment. (GH-94789)
Miss Islington (bot) [Tue, 12 Jul 2022 21:57:39 +0000 (14:57 -0700)] 
Fix typo in _exact_ratio comment. (GH-94789)

(cherry picked from commit e39ce7d4871429d3a48f51139eff9abacd719361)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
3 years agodocs: typing.Self, fix typo (GH-94771)
Miss Islington (bot) [Tue, 12 Jul 2022 18:17:06 +0000 (11:17 -0700)] 
docs: typing.Self, fix typo (GH-94771)

* fix typo - double spelled word 'use'

* change methods names to the infinitive form
(cherry picked from commit 90a6e56e5663233fe986331ef3f10422fe57dcbc)

Co-authored-by: Max Zhenzhera <59729293+maxzhenzhera@users.noreply.github.com>
3 years agogh-94773: deepfreeze: support frozensets with unsortable types (GH-94775)
Miss Islington (bot) [Tue, 12 Jul 2022 16:35:43 +0000 (09:35 -0700)] 
gh-94773: deepfreeze: support frozensets with unsortable types (GH-94775)

(cherry picked from commit 0c66074e9f8c9728e1d920910d35da0c62f30403)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agoPost 3.11.0b4
Pablo Galindo [Mon, 11 Jul 2022 17:31:05 +0000 (18:31 +0100)] 
Post 3.11.0b4

3 years agoPython 3.11.0b4 v3.11.0b4
Pablo Galindo [Mon, 11 Jul 2022 15:24:37 +0000 (16:24 +0100)] 
Python 3.11.0b4

3 years ago[3.11] GH-94736: mark SemLock test as linux only (GH-94750) (#94752)
Miss Islington (bot) [Mon, 11 Jul 2022 15:24:12 +0000 (08:24 -0700)] 
[3.11] GH-94736: mark SemLock test as linux only (GH-94750) (#94752)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years ago[3.11] bpo-45924: Fix asyncio incorrect traceback when future's exception is raised...
Miss Islington (bot) [Mon, 11 Jul 2022 13:17:32 +0000 (06:17 -0700)] 
[3.11] bpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple times (GH-30274) (#94747)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agoGH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738)
Miss Islington (bot) [Mon, 11 Jul 2022 12:40:02 +0000 (05:40 -0700)] 
GH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738)

* fix allocator and deallocator

* 📜🤖 Added by blurb_it.

* code review

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit f5b76330cfb93e1ad1a77c71dafe719f6a808cec)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years ago[3.11] gh-93883: elide traceback indicators when possible (GH-93994) (GH-94740)
John Belmonte [Mon, 11 Jul 2022 11:27:29 +0000 (20:27 +0900)] 
[3.11] gh-93883: elide traceback indicators when possible (GH-93994) (GH-94740)

Elide traceback column indicators when the entire line of the
frame is implicated.  This reduces traceback length and draws
more attention to the remaining (very relevant) indicators.

Example:
```
Traceback (most recent call last):
  File "query.py", line 99, in <module>
    bar()
  File "query.py", line 66, in bar
    foo()
  File "query.py", line 37, in foo
    magic_arithmetic('foo')
  File "query.py", line 18, in magic_arithmetic
    return add_counts(x) / 25
           ^^^^^^^^^^^^^
  File "query.py", line 24, in add_counts
    return 25 + query_user(user1) + query_user(user2)
                ^^^^^^^^^^^^^^^^^
  File "query.py", line 32, in query_user
    return 1 + query_count(db, response['a']['b']['c']['user'], retry=True)
                               ~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'NoneType' object is not subscriptable
```

Automerge-Triggered-By: GH:pablogsal
3 years agoGH-77265: Document NaN handling in statistics functions that sort or count (GH-94676...
Miss Islington (bot) [Sun, 10 Jul 2022 17:35:33 +0000 (10:35 -0700)] 
GH-77265: Document NaN handling in statistics functions that sort or count (GH-94676) (#94726)

3 years ago[3.11] GH-94694: Fix column offsets for multi-line method lookups (GH-94721)
Brandt Bucher [Sun, 10 Jul 2022 05:12:45 +0000 (22:12 -0700)] 
[3.11] GH-94694: Fix column offsets for multi-line method lookups (GH-94721)

(cherry picked from commit 264b3ddfd561d97204ffb30be6a7d1fb0555e560)

3 years agoImprove dataclass docstring (gh-94686)
Miss Islington (bot) [Sat, 9 Jul 2022 18:51:35 +0000 (11:51 -0700)] 
Improve dataclass docstring (gh-94686)

(cherry picked from commit a10cf2f6b3766f9dbbe54bdaacfb3f2ca406ea3d)

Co-authored-by: Tom Fryers <61272761+TomFryers@users.noreply.github.com>
3 years agogh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)
Miss Islington (bot) [Sat, 9 Jul 2022 16:33:15 +0000 (09:33 -0700)] 
gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)

(cherry picked from commit 78307c7dc2352b6633138466debd4c10fae32970)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.11] GH-93252: Fix error handling for failed Python calls (GH-94693) (GH-94708)
Kumar Aditya [Sat, 9 Jul 2022 12:09:15 +0000 (17:39 +0530)] 
[3.11] GH-93252: Fix error handling for failed Python calls (GH-94693) (GH-94708)

Automerge-Triggered-By: GH:tiran
3 years agogh-94607: Fix subclassing generics (GH-94610)
Miss Islington (bot) [Sat, 9 Jul 2022 05:20:43 +0000 (22:20 -0700)] 
gh-94607: Fix subclassing generics (GH-94610)

Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com>
(cherry picked from commit 6442a9dd212fa18343db21849cf05c0181662c1f)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
3 years agoUse mdash-es consistently in the library docs index (GH-92762)
Miss Islington (bot) [Fri, 8 Jul 2022 14:52:02 +0000 (07:52 -0700)] 
Use mdash-es consistently in the library docs index (GH-92762)

(cherry picked from commit efb20a97c491821acb03564f526afaf9eed47eef)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years ago[3.11] gh-94215: Fix error handling for line-tracing events (GH-94681) (GH-94688)
Christian Heimes [Fri, 8 Jul 2022 13:25:53 +0000 (15:25 +0200)] 
[3.11] gh-94215: Fix error handling for line-tracing events (GH-94681) (GH-94688)

* Re-enable crasher
* Fix error handling for line-tracing events
* blurb add
(cherry picked from commit 23ee4a8067506e6c9c47748185653617413f7a60)

Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
3 years ago[3.11] gh-94622: Add more references to the sqlite3 types anchor (GH-94623) (#94678)
Erlend Egeberg Aasland [Fri, 8 Jul 2022 00:50:01 +0000 (02:50 +0200)] 
[3.11] gh-94622: Add more references to the sqlite3 types anchor (GH-94623) (#94678)

(cherry picked from commit e5b841a4037d1c2ce3d12a584facf800ae36332a)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94321: Document sqlite3.PrepareProtocol (GH-94620)
Miss Islington (bot) [Thu, 7 Jul 2022 23:09:05 +0000 (16:09 -0700)] 
gh-94321: Document sqlite3.PrepareProtocol (GH-94620)

(cherry picked from commit fb6dccae348b954d9f625031b54711a9a33da525)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agoGH-94644: fix test_curses ref leak (GH-94647)
Miss Islington (bot) [Thu, 7 Jul 2022 12:03:00 +0000 (05:03 -0700)] 
GH-94644: fix test_curses ref leak (GH-94647)

(cherry picked from commit 277f55cb04409ccdf651d43df5eb9dcb3ee3128c)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agogh-93910: Fix enum performance regression (GH-94614)
Miss Islington (bot) [Thu, 7 Jul 2022 12:01:09 +0000 (05:01 -0700)] 
gh-93910: Fix enum performance regression (GH-94614)

This removes the performance regression in 3.11, **at the expense of not fixing
the "bug" that allows accessing values from values** (e.g. `Color.RED.BLUE`).

Using the benchmark @markshannon [presented](https://github.com/python/cpython/issues/93910GH-issuecomment-1165503032), the results are:

| Version | Enum | Fast enum | Normal class |
| --- | --- | --- | --- |
| 3.10 | 2.04 | 0.59 | 0.56 |
| 3.11 | 2.78 | 0.31 | 0.15 |
| This PR | 1.30 | 0.32 | 0.16 |

I share this mostly as information about the source of the regression, as this may be useful. It may be that the lower-risk approach for the beta is just to revert to a previously-known working state.
(cherry picked from commit ed136b96737fdbeff864079d12904cb962c6cce5)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
3 years agogh-94215: Add reproducer for segfault in frame_setlineno() (GH-94563)
Miss Islington (bot) [Thu, 7 Jul 2022 11:17:47 +0000 (04:17 -0700)] 
gh-94215: Add reproducer for segfault in frame_setlineno() (GH-94563)

(cherry picked from commit de5884295ece094931413267973036ae8a0bca05)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.11] gh-94430: Allow params named `module` or `self` with custom C names in AC...
Erlend Egeberg Aasland [Thu, 7 Jul 2022 10:12:47 +0000 (12:12 +0200)] 
[3.11] gh-94430: Allow params named `module` or `self` with custom C names in AC (GH-94431) (#94649)

(cherry picked from commit 8bbd70b4d130f060f87e3f53810dc747a49fa369)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years ago[3.11] gh-92228: disable the compiler's 'small exit block inlining' optimization...
Christian Heimes [Thu, 7 Jul 2022 10:10:32 +0000 (12:10 +0200)] 
[3.11] gh-92228: disable the compiler's 'small exit block inlining' optimization for blocks that have a line number (GH-94592) (GH-94643)

Inlining of code that corresponds to source code lines, can make it hard to distinguish later between code which is only reachable from except handlers, and that which is reachable in normal control flow. This caused problems with the debugger's jump feature.

This PR turns off the inlining optimisation for code which has line numbers. We still inline things like the implicit "return None"..
(cherry picked from commit bde06e1b8381f140b296a397ddd1deb1c784ff8e)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years ago[3.11] gh-94628: Add explicit parameter list to sqlite3.connect docs (GH-94629) ...
Erlend Egeberg Aasland [Thu, 7 Jul 2022 08:46:14 +0000 (10:46 +0200)] 
[3.11] gh-94628: Add explicit parameter list to sqlite3.connect docs (GH-94629) (#94645)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 3eb2b9634fdc6826a558fa5aa820dc6e69b7800e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)
Miss Islington (bot) [Wed, 6 Jul 2022 23:22:10 +0000 (16:22 -0700)] 
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)

(cherry picked from commit 94988603f3c934f95220f09aefffd50c0a5d3367)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-94017: Improve clarity of sqlite3 transaction handling docs (GH-94320)
Miss Islington (bot) [Wed, 6 Jul 2022 21:08:13 +0000 (14:08 -0700)] 
gh-94017: Improve clarity of sqlite3 transaction handling docs (GH-94320)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 760b8cf0c887fbc5191611a7e7d4b8c0c4f15edc)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years agoGH-93896: AAlways set event loop in asyncio.run and IsolatedAsyncioTestCase (GH-94593)
Miss Islington (bot) [Wed, 6 Jul 2022 15:48:37 +0000 (08:48 -0700)] 
GH-93896: AAlways set event loop in asyncio.run and IsolatedAsyncioTestCase (GH-94593)

(cherry picked from commit 14fea6b4d25658bc00adbb97dd40ea3d3e6843ad)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years ago[3.11] gh-94438: in frameobject's mark_stacks switch, the PUSH_EXC_INFO and POP_EXCEP...
Irit Katriel [Wed, 6 Jul 2022 07:21:59 +0000 (08:21 +0100)] 
[3.11] gh-94438: in frameobject's mark_stacks switch, the PUSH_EXC_INFO and POP_EXCEPT cases are no longer reachable (GH-94582) (GH-94595)

(cherry picked from commit 50b9a7762f06335277d9962edc8d39498601a4e4)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years ago[3.11] gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace (GH...
Łukasz Langa [Tue, 5 Jul 2022 19:02:43 +0000 (21:02 +0200)] 
[3.11] gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace (GH-94511) (GH-94578)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 40d81fd63b46cf998880ce3bf3e5cb42bc3199c1)

3 years agogh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424) (GH-94576)
Miss Islington (bot) [Tue, 5 Jul 2022 18:44:31 +0000 (11:44 -0700)] 
gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424) (GH-94576)

Co-authored-by: Erik De Bonte <erikd@microsoft.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 5f319308a820f49fec66fc3ade50bbaa9fe2105d)

3 years agogh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from...
Miss Islington (bot) [Tue, 5 Jul 2022 17:09:51 +0000 (10:09 -0700)] 
gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin (GH-94386)

* gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* nitty nit

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 36fcde61ba48c4e918830691ecf4092e4e3b9b99)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agogh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94568)
Miss Islington (bot) [Tue, 5 Jul 2022 15:54:03 +0000 (08:54 -0700)] 
gh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94568)

Co-authored-by: Carter Dodd <carter.dodd@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c8556bcf6c0b05ac46bd74880626a2853e7c99a1)

3 years ago[3.11] gh-92897: Ensure `venv --copies` respects source build property of the creatin...
Vinay Sajip [Tue, 5 Jul 2022 15:40:17 +0000 (16:40 +0100)] 
[3.11] gh-92897: Ensure `venv --copies` respects source build property of the creating interpreter (GH-92899) (GH-94567)

(cherry picked from commit 067597522a9002f3b8aff7f46033f10acb2381e4)

Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
3 years agoDocs: Convert PEP 630 (Isolating Extension Modules) to a HOWTO (GH-94489) (GH-94566)
Miss Islington (bot) [Tue, 5 Jul 2022 15:20:03 +0000 (08:20 -0700)] 
Docs: Convert PEP 630 (Isolating Extension Modules) to a HOWTO (GH-94489) (GH-94566)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit e6ec6f5b50e8793172e83a9afbb05fe01f236b37)

3 years ago[3.11] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) (GH-94564)
Miss Islington (bot) [Tue, 5 Jul 2022 14:49:05 +0000 (07:49 -0700)] 
[3.11] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) (GH-94564)

Co-authored-by: Erik Montnemery <erik@montnemery.com>
3 years ago[3.11] gh-94485: Set line number of module's RESUME instruction to 0 as specified...
Łukasz Langa [Tue, 5 Jul 2022 14:01:24 +0000 (16:01 +0200)] 
[3.11] gh-94485: Set line number of module's RESUME instruction to 0 as specified by PEP 626 (GH-94552) (GH-94562)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Mark Shannon <mark@hotpy.org>
(cherry picked from commit 324d01944d16868b07df9e8eef6987766a31a36d)

3 years agogh-84753: Clarify change made to `inspect` functions (GH-94554) (GH-94560)
Miss Islington (bot) [Tue, 5 Jul 2022 12:35:09 +0000 (05:35 -0700)] 
gh-84753: Clarify change made to `inspect` functions (GH-94554) (GH-94560)

(cherry picked from commit a2a3f2c541290fc8f0720d1abdc12d564b856c28)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agogh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94555)
Miss Islington (bot) [Tue, 5 Jul 2022 12:33:59 +0000 (05:33 -0700)] 
gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94555)

(cherry picked from commit 2b8ed4d3d4741811da31fc774a202d535755c0a9)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agoDocs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551...
Miss Islington (bot) [Tue, 5 Jul 2022 12:30:19 +0000 (05:30 -0700)] 
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551) (GH-94557)

Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
(cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
3 years agogh-93626: Set the release for `__future__.annotations` to `None` (GH-93628) (GH-94553)
Miss Islington (bot) [Tue, 5 Jul 2022 09:16:32 +0000 (02:16 -0700)] 
gh-93626: Set the release for `__future__.annotations` to `None` (GH-93628) (GH-94553)

Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
(cherry picked from commit 4791a8a8357e67431cb686d9559aa419074b8e33)

Co-authored-by: KotlinIsland <65446343+KotlinIsland@users.noreply.github.com>