Miss Islington (bot)
8d5d60f72d
[3.12] gh-106075: add asyncio.taskgroups.__all__ to asyncio.__all__ (GH-106090) ( #106098 )
...
gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (GH-106090)
(cherry picked from commit a12e8ffb49 )
Co-authored-by: James Webber <jamestwebber@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2023-06-26 12:26:15 +00:00
Kumar Aditya
9e6f8d4615
[3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_cur… ( #106099 )
...
[3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_current_task` (GH-105989).
(cherry picked from commit d2cbb6e918 )
Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
2023-06-26 08:51:28 +00:00
Miss Islington (bot)
b786fe8a09
[3.12] gh-105979: Fix exception handling in unmarshal_frozen_code (Python/import.c) (GH-105980) ( #106055 )
...
gh-105979: Fix exception handling in `unmarshal_frozen_code` (`Python/import.c`) (GH-105980)
(cherry picked from commit cd5280367a )
Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
2023-06-26 14:01:01 +05:30
Miss Islington (bot)
7d6ee298e9
[3.12] gh-105974: Revert unintentional behaviour change for protocols with non-callable members and custom __subclasshook__ methods (GH-105976) ( #106032 )
...
gh-105974: Revert unintentional behaviour change for protocols with non-callable members and custom `__subclasshook__` methods (GH-105976)
(cherry picked from commit 9499b0f138 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-23 15:26:37 +00:00
Miss Islington (bot)
c407ef0a8a
[3.12] gh-98931: Add custom error messages to invalid import/from with multiple targets (GH-105985) ( #105991 )
...
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-22 16:28:06 +00:00
Miss Islington (bot)
c5c8111acf
[3.12] gh-105915: Fix SyntaxWarning becoming a SyntaxError with -We in test_fstring (GH-105943) ( #105945 )
...
(cherry picked from commit 6e40ee6e84 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2023-06-20 15:08:29 +00:00
Thomas Wouters
e149448595
Merge branch '3.12' of https://github.com/python/cpython into 3.12
2023-06-20 15:32:39 +02:00
Miss Islington (bot)
164fa93001
[3.12] gh-105915: Add 'r' prefix to not emit SyntaxWarning in test_fstring (GH-105940) ( #105942 )
...
(cherry picked from commit 4b431d2e90 )
Co-authored-by: @sunmy2019
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2023-06-20 13:16:21 +00:00
Miss Islington (bot)
fea0d2fbaa
[3.12] gh-105938: Emit a SyntaxWarning for escaped braces in an f-string (GH-105939) ( #105941 )
...
(cherry picked from commit 6586cee27f )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2023-06-20 13:09:48 +00:00
Miss Islington (bot)
cc18a8b78a
[3.12] gh-105908: fix barry_as_FLUFL future import (GH-105909) ( #105930 )
...
(cherry picked from commit 28187a9c4f )
Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
2023-06-20 03:05:20 +00:00
Thomas Wouters
f992a60014
Python 3.12.0b3
2023-06-19 20:56:16 +02:00
Miss Islington (bot)
225cc4c043
[3.12] GH-105808: Fix a regression introduced in GH-101251 (GH-105910) ( #105920 )
...
GH-105808: Fix a regression introduced in GH-101251 (GH-105910)
Fix a regression introduced in pythonGH-101251, causing GzipFile.flush() to
not flush the compressor (nor pass along the zip_mode argument).
(cherry picked from commit 1858db7cbd )
Co-authored-by: T. Wouters <thomas@python.org>
2023-06-19 17:42:23 +00:00
Miss Islington (bot)
560adb01f9
[3.12] GH-105840: Fix assertion failures when specializing calls with too many __defaults__ (GH-105863)
...
GH-105840: Fix assertion failures when specializing calls with too many __defaults__ (GH-105847)
(cherry picked from commit 2beab5bdef )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
2023-06-16 18:29:55 +00:00
Miss Islington (bot)
5ca707d1e4
[3.12] gh-104799: PEP 695 backward compatibility for ast.unparse (GH-105846) ( #105862 )
...
(cherry picked from commit 957a974d4f )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-06-16 16:59:25 +00:00
Miss Islington (bot)
e6982c5860
[3.12] gh-105834: Add tests for calling issubclass() between two protocols (GH-105835) ( #105859 )
...
Some parts of the implementation of `typing.Protocol` had poor test coverage
(cherry picked from commit 70c075c194 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-16 16:20:19 +00:00
Miss Islington (bot)
0cb670f7e2
[3.12] gh-105433: Add pickle tests for PEP695 (GH-105443) ( #105845 )
...
(cherry picked from commit 1af8251d9e )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-06-16 01:26:45 +00:00
Miss Islington (bot)
0add51672d
[3.12] GH-105588: Add missing error checks to some obj2ast_* converters (GH-105838)
...
GH-105588: Add missing error checks to some obj2ast_* converters (GH-105589)
(cherry picked from commit a4056c8f9c )
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
2023-06-15 23:12:01 +00:00
Miss Islington (bot)
e9cf5a324e
[3.12] gh-105820: Fix tok_mode expression buffer in file & readline tokenizer (GH-105828) ( #105832 )
...
(cherry picked from commit d382ad4915 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2023-06-15 17:21:58 +00:00
Miss Islington (bot)
abb4eaa46f
[3.12] gh-102541: Hide traceback in help prompt (gh-102614) (gh-105778)
...
gh-102541: Hide traceback in help prompt (gh-102614)
(cherry picked from commit ba516e70c6 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2023-06-15 23:56:04 +09:00
Miss Islington (bot)
3073e23229
[3.12] gh-105821: Use a raw f-string in test_httpservers.py (GH-105822) ( #105824 )
...
gh-105821: Use a raw f-string in test_httpservers.py (GH-105822)
Use a raw f-string in test_httpservers.py
(cherry picked from commit 09ce8c3b48 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2023-06-15 11:13:22 +00:00
Miss Islington (bot)
638c2bacde
[3.12] gh-105800: Issue SyntaxWarning in f-strings for invalid escape sequences (GH-105801) ( #105806 )
...
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2023-06-15 00:36:40 +00:00
Miss Islington (bot)
ad7371e407
[3.12] gh-105745: Fix open method of webbrowser.Konqueror (GH-105746) ( #105777 )
...
gh-105745: Fix open method of webbrowser.Konqueror (GH-105746)
(cherry picked from commit e5d45b7444 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-06-14 12:26:33 +00:00
Eric Snow
33d3069c45
[3.12] gh-104812: Run Pending Calls in any Thread (gh-104813) (gh-105752)
...
For a while now, pending calls only run in the main thread (in the main interpreter). This PR changes things to allow any thread run a pending call, unless the pending call was explicitly added for the main thread to run.
(cherry picked from commit 757b402 )
2023-06-14 00:50:08 +00:00
Miss Islington (bot)
75239d5ec1
[3.12] gh-105436: Ignore unrelated errors when checking empty env (GH-105742) ( #105756 )
...
gh-105436: Ignore unrelated errors when checking empty env (GH-105742)
(cherry picked from commit 4cefe3cf10 )
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-06-13 23:41:07 +00:00
Miss Islington (bot)
27426d8983
[3.12] gh-102613: Bump recursion limit to fix running test_pathlib under Coverage (GH-105744) ( #105749 )
...
gh-102613: Bump recursion limit to fix running test_pathlib under Coverage (GH-105744)
(cherry picked from commit 4e80082723 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2023-06-13 21:21:04 +00:00
Miss Islington (bot)
c3a2cbb54d
[3.12] gh-105603: Change the PyInterpreterConfig.own gil Field (gh-105620) (gh-105731)
...
We are changing it to be more flexible that a strict bool can be for possible future expanded used cases.
(cherry picked from commit b97e14a806 )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2023-06-13 17:42:56 +00:00
Miss Islington (bot)
9c51ea5d55
[3.12] gh-105718: Fix buffer allocation in tokenizer with readline (GH-105728) ( #105729 )
...
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2023-06-13 15:53:51 +00:00
Miro Hrončok
04b9168037
[3.12] gh-105084: Tests: Use setuptools+wheel from sysconfig.get_config_var('WHEEL_PKG_DIR') if set ( #105056 ) ( #105424 )
...
Includes part of the changes from afa759fb80 ,
to make this apply.
Co-Authored-By: Lysandros Nikolaou <lisandrosnik@gmail.com>
(cherry picked from commit bd98b65e97 )
2023-06-13 12:54:11 +02:00
Miss Islington (bot)
77bdeebdda
[3.12] gh-105436: The environment block should end with two null wchar_t values (GH-105495) ( #105700 )
...
gh-105436: The environment block should end with two null wchar_t values (GH-105495)
(cherry picked from commit 4f7d3b602d )
Co-authored-by: Dora203 <66343334+sku2000@users.noreply.github.com>
2023-06-12 16:50:58 +00:00
Miss Islington (bot)
2eed1f5868
[3.12] gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL (GH-105386) (GH-105697)
...
gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL (GH-105386)
(cherry picked from commit 2b90796be6 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2023-06-12 16:24:21 +00:00
Miss Islington (bot)
071d559def
[3.12] Fix typo in configparser module docstring (GH-105652) ( #105653 )
...
Fix typo in configparser module docstring (GH-105652)
"zc.buildbot" -> "zc.buildout"
(cherry picked from commit 845e593c4e )
Co-authored-by: litlighilit <97860435+litlighilit@users.noreply.github.com>
2023-06-11 14:31:04 +00:00
Miss Islington (bot)
ae6e002f5a
[3.12] gh-105549: Tokenize separately NUMBER and NAME tokens and allow 0-prefixed literals (GH-105555) ( #105602 )
...
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2023-06-09 21:40:07 +00:00
Miss Islington (bot)
bc365da711
[3.12] gh-105557: Remove duplicate sqlite3 test method (GH-105558) ( #105561 )
...
test_func_return_too_large_int() was defined twice.
Keep only the redefined method, as that also checks the tracebacks.
(cherry picked from commit b8fa7bda4f )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-06-09 17:15:55 +00:00
Miss Islington (bot)
16b1cdc87c
[3.12] gh-105564: Don't include artificial newlines in the line attribute of tokens (GH-105565) ( #105579 )
...
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2023-06-09 16:58:14 +00:00
Miss Islington (bot)
7c298d2dc5
[3.12] Miscellaneous improvements to the typing docs (GH-105529) ( #105567 )
...
Miscellaneous improvements to the typing docs (GH-105529)
Mostly, these are changes so that we use shorter sentences and shorter paragraphs. In particular, I've tried to make the first sentence introducing each object in the typing API short and declarative.
(cherry picked from commit 8e755923c9 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-09 15:37:33 +00:00
Miss Islington (bot)
2f4a2d6c1b
[3.12] gh-105332: [Enum] Fix unpickling flags in edge-cases (GH-105348) (GH-105520)
...
* revert enum pickling from by-name to by-value
(cherry picked from commit 4ff5690e59 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2023-06-08 18:01:51 -07:00
Miss Islington (bot)
3eccd95f56
[3.12] gh-102832: IDLE - update stackviewer open (GH-105528) ( #105534 )
...
gh-102832: IDLE - update stackviewer open (GH-105528)
Use 'last_exc' instead of 'last_value' in 3.12/3.
(cherry picked from commit bb3454c1a7 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-06-08 22:29:24 +00:00
Miss Islington (bot)
f565fed548
[3.12] gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339) ( #105526 )
...
gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer (GH-103339)
(cherry picked from commit 3ee921d84f )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2023-06-08 21:57:33 +00:00
Miss Islington (bot)
8698fa83f6
[3.12] gh-104310: Rename the New Function in importlib.util (gh-105255) (gh-105518)
...
The original name wasn't as clear as it could have been. This change includes the following:
* rename the function
* change the default value for "disable_check" to False
* add clues to the docstring that folks should probably not use the function
---------
(cherry picked from commit 34c63b86d3 )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2023-06-08 19:00:04 +00:00
Miss Islington (bot)
1f90b2f57a
[3.12] test_types: Replace raw assert statements (GH-105500) ( #105507 )
...
(cherry picked from commit a8eb7372ee )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-06-08 15:19:11 +00:00
Miss Islington (bot)
3c5f0eadd8
[3.12] Further improve docs for typing.Annotated (GH-105498) ( #105503 )
...
Further improve docs for `typing.Annotated` (GH-105498)
(cherry picked from commit d213c2990f )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-08 15:12:35 +00:00
Miss Islington (bot)
2b6f475db8
[3.12] gh-105431: Remove unused stuff from test_typing.NewTypeTests (GH-105432) ( #105489 )
...
gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432)
(cherry picked from commit 9d35a71a76 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-06-08 06:57:21 +00:00
Barney Gale
ae25f1c8e5
[3.12] GH-104996: Defer joining of pathlib.PurePath() arguments. (GH-104999) (GH-105483)
...
Joining of arguments is moved to `_load_parts`, which is called when a
normalized path is needed.
(cherry picked from commit ffeaec7e60 )
2023-06-08 00:25:45 +01:00
Miss Islington (bot)
4b2263e4bf
[3.12] gh-103171: Forward-port new tests for runtime-checkable protocols decorated with @final (GH-105473) ( #105474 )
...
Forward-port of the tests that were added to the 3.11 branch in GH-105445
(cherry picked from commit f5df347fcf )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-07 22:54:42 +00:00
Miss Islington (bot)
9a7c4a5f39
[3.12] typing: Improve documentation of generic classes and aliases (GH-105369) ( #105453 )
...
typing: Improve documentation of generic classes and aliases (GH-105369)
(cherry picked from commit d63a7c3694 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-07 15:04:14 +00:00
Miss Islington (bot)
d36aa244c8
[3.12] gh-105437: Improve tests of type params names for PEP 695 (GH-105438) ( #105452 )
...
(cherry picked from commit 76883af6bf )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-06-07 14:35:12 +00:00
Miss Islington (bot)
98ccc2de6b
[3.12] gh-105430: Remove typing._Immutable unused internal helper (GH-105434) ( #105451 )
...
gh-105430: Remove `typing._Immutable` unused internal helper (GH-105434)
(cherry picked from commit 18309ad94b )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-06-07 14:30:39 +00:00
Miss Islington (bot)
117c153d9f
[3.12] gh-105435: Fix spurious NEWLINE token if file ends with comment without a newline (GH-105442) ( #105444 )
2023-06-07 14:07:57 +01:00
Miss Islington (bot)
c84d4d165d
[3.12] gh-105390: Correctly raise TokenError instead of SyntaxError for tokenize errors (GH-105399) ( #105439 )
2023-06-07 12:38:36 +01:00
Miss Islington (bot)
84133c56f3
[3.12] gh-105286: Further improvements to typing.py docstrings (GH-105363) ( #105416 )
...
gh-105286: Further improvements to `typing.py` docstrings (GH-105363)
(cherry picked from commit 9a89f1bf1e )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-07 00:51:16 +00:00