https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
f992a60 Python 3.12.0b3 19 June 2023, 18:56:16 UTC
225cc4c [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 1858db7cbdbf41aa600c954c15224307bf81a258) Co-authored-by: T. Wouters <thomas@python.org> 19 June 2023, 17:42:23 UTC
5e524ef [3.12] typing docs: Improve the intro to each section (GH-105901) (#105902) typing docs: Improve the intro to each section (GH-105901) (cherry picked from commit 4426279a4399158027a1145cff1c4c92424bf5b5) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 19 June 2023, 00:02:48 UTC
1606cbc [3.12] gh-105844: Use devguide terminology to denote versions (GH-105882) (#105892) (cherry picked from commit dba72175116373c1d15e25d84c88b516daf9f5c4) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 18 June 2023, 17:56:35 UTC
6baddd9 [3.12] Docs: move sphinx-lint to pre-commit (GH-105750) (#105894) Docs: move sphinx-lint to pre-commit (GH-105750) (cherry picked from commit bc07c8f096791d678ca5c1e3486cb9648f7a027b) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 18 June 2023, 12:21:34 UTC
b34f1df [3.12] CI: Bump macOS build to use OpenSSL v3.0 (GH-105538) (#105867) (cherry picked from commit 34e93d3998bab8acd651c50724eb1977f4860a08) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 16 June 2023, 19:34:46 UTC
560adb0 [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 2beab5bdef5fa2a00a59371e6137f769586b7404) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com> 16 June 2023, 18:29:55 UTC
32c0aeb [3.12] bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) (#105841) bpo-44530: Document the change in MAKE_FUNCTION behavior (GH-93189) * bpo-44530: Document the change in MAKE_FUNCTION behavior Fixes dis module documentation for MAKE_FUNCTION due to https://github.com/python/cpython/commit/2f180ce2cb6e6a7e3c517495e0f4873d6aaf5f2f (bpo-44530, released as part of 3.11) removes the qualified name at TOS (cherry picked from commit 486b52a3158e0f64fc54efdfa34ed5437b3619f2) Co-authored-by: Alex Doe <alexdoesh@gmail.com> 16 June 2023, 17:17:33 UTC
5ca707d [3.12] gh-104799: PEP 695 backward compatibility for ast.unparse (GH-105846) (#105862) (cherry picked from commit 957a974d4fc1575787e4a29a399a47520d6df6d3) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 16 June 2023, 16:59:25 UTC
e6982c5 [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 70c075c194d3739ae10ce76265f05fa82ed46487) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 16 June 2023, 16:20:19 UTC
32d8b56 [3.12] CI: Remove docs build from Azure Pipelines (GH-105823) (#105854) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 16 June 2023, 11:30:36 UTC
1eeb2e6 [3.12] gh-105844: Consistently use 'minor version' for X.Y versions (GH-105851) (#105853) (cherry picked from commit 0bffe1acd78069ea21f6b1347bec9cc9747342cb) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 16 June 2023, 08:56:32 UTC
6f0f27e [3.12] Fix inaccuracies in "Assorted Topics" section of "Defining Extension Types" tutorial (GH-104969) (#105850) Fix inaccuracies in "Assorted Topics" section of "Defining Extension Types" tutorial (GH-104969) (cherry picked from commit 0d0963737a0f4b7cadedfae7e8fd33ed18269289) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com> 16 June 2023, 07:56:40 UTC
f94cb78 [3.12] tarfile: Fix positional-only syntax in docs (GH-105770) (#105773) The syntax used in the current docs (a / before any args) is invalid. I think the right approach is for the arguments to arbitrary filter functions to be treated as positional-only, meaning that users can supply filter functions with any names for the argument. tarfile.py only calls the filter function with positional arguments. (cherry picked from commit 5cdd5ba49db10f05e204e7a49ce184222a93dce8) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 16 June 2023, 05:43:19 UTC
0cb670f [3.12] gh-105433: Add `pickle` tests for PEP695 (GH-105443) (#105845) (cherry picked from commit 1af8251d9ec2f18e131c19ccf776fb9ec132c7a8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 16 June 2023, 01:26:45 UTC
0add516 [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 a4056c8f9c2d9970d39e3cb6bffb255cd4b8a42c) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com> 15 June 2023, 23:12:01 UTC
e9cf5a3 [3.12] gh-105820: Fix tok_mode expression buffer in file & readline tokenizer (GH-105828) (#105832) (cherry picked from commit d382ad49157b3802fc5619f68d96810def517869) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 15 June 2023, 17:21:58 UTC
abb4eaa [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 ba516e70c6d156dc59dede35b6fc3db0151780a5) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> 15 June 2023, 14:56:04 UTC
3073e23 [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 09ce8c3b48f940eb8865330f029b8069854c3106) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> 15 June 2023, 11:13:22 UTC
9012c55 [3.12] More reorganisation of the typing docs (GH-105787) (#105810) More reorganisation of the typing docs (GH-105787) (cherry picked from commit da911a6b226ca47cc15088d800b575e19a731f1c) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 15 June 2023, 06:12:42 UTC
1573f16 [3.12] Improve docs for `typing.dataclass_transform` (GH-105792) (#105809) Improve docs for `typing.dataclass_transform` (GH-105792) (cherry picked from commit 006a4532058f1fadba93283c0f45b0d82735b364) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 15 June 2023, 06:12:26 UTC
335fbd6 [3.12] gh-105196: Fix indentations of section headings in C API docs (GH-105672) (#105782) gh-105196: Fix indentations of section headings in C API docs (GH-105672) (cherry picked from commit d32e8d6070057eb7ad0eb2f9d9f1efab38b2cff4) Co-authored-by: TATHAGATA ROY <royzen9495@gmail.com> 15 June 2023, 03:30:00 UTC
638c2ba [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> 15 June 2023, 00:36:40 UTC
52a2bbd [3.12] Typing docs: move the deprecated stuff below the non-deprecated stuff (#105781) (#105783) 14 June 2023, 15:03:30 UTC
ad7371e [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 e5d45b7444733861153d6e8959c34323fd361322) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 14 June 2023, 12:26:33 UTC
0a9346d [3.12] gh-105587: Remove assertion from `_PyStaticObject_CheckRefcnt` (GH-105638) (#105769) gh-105587: Remove assertion from `_PyStaticObject_CheckRefcnt` (GH-105638) (cherry picked from commit 6199fe3b3236748033a7ce2559aeddb5a91bbbd9) Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com> 14 June 2023, 05:04:22 UTC
bc997b3 [3.12] gh-105699: Use a Thread-Local Variable for PKGCONTEXT (gh-105740) (gh-105765) This fixes a race during import. The existing _PyRuntimeState.imports.pkgcontext is shared between interpreters, and occasionally this would cause a crash when multiple interpreters were importing extensions modules at the same time. To solve this we add a thread-local variable for the value. We also leave the existing state (and infrequent race) in place for platforms that do not support thread-local variables. (cherry picked from commit b87d2882754a7c273e2695c33384383eba380d7d) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> 14 June 2023, 01:34:26 UTC
26bc2cc [3.12] gh-105387: Limited C API implements Py_INCREF() as func (GH-105388) (#105763) gh-105387: Limited C API implements Py_INCREF() as func (GH-105388) In the limited C API version 3.12, Py_INCREF() and Py_DECREF() functions are now implemented as opaque function calls to hide implementation details. (cherry picked from commit b542972dc133973a7f0517aa1b61779271789111) Co-authored-by: Victor Stinner <vstinner@python.org> 14 June 2023, 01:05:01 UTC
33d3069 [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) 14 June 2023, 00:50:08 UTC
75239d5 [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 4cefe3cf10f498c0927ae4fdba4880d5a64826e4) Co-authored-by: Steve Dower <steve.dower@python.org> 13 June 2023, 23:41:07 UTC
51b533e [3.12] gh-98040: Fix importbench: use types.ModuleType() (GH-105743) (#105754) gh-98040: Fix importbench: use types.ModuleType() (GH-105743) Replace removed imp.new_module(name) with types.ModuleType(name). (cherry picked from commit 457a459c7804950d4c27a243b176eb933ec87a06) Co-authored-by: Victor Stinner <vstinner@python.org> 13 June 2023, 22:59:02 UTC
27426d8 [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 4e80082723b768df124f77d2b73b3ba6b584a735) Co-authored-by: Łukasz Langa <lukasz@langa.pl> 13 June 2023, 21:21:04 UTC
c3a2cbb [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 b97e14a806477af4225777d215ac38c0d9b845f0) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> 13 June 2023, 17:42:56 UTC
9c51ea5 [3.12] gh-105718: Fix buffer allocation in tokenizer with readline (GH-105728) (#105729) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 13 June 2023, 15:53:51 UTC
04b9168 [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 afa759fb800be416f69e3e9c9b3efe68006316f5, to make this apply. Co-Authored-By: Lysandros Nikolaou <lisandrosnik@gmail.com> (cherry picked from commit bd98b65e974b7a1e086a51e7b55131582f7a0491) 13 June 2023, 10:54:11 UTC
92929fd [3.12] gh-105713: Document that tokenize raises when mixing tabs/spaces (GH-105723) (#105725) * gh-105713: Document that tokenize raises when mixing tabs/spaces * Update Doc/whatsnew/3.12.rst (cherry picked from commit ed8217b493e19cea0f3f539e55b592c09ceb9323) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 13 June 2023, 10:48:43 UTC
56877e4 [3.12] gh-105375: Improve error handling in _Unpickler_SetInputStream() (#105667) (#105720) Prevent exceptions from possibly being overwritten in case of multiple failures. (cherry picked from commit 217589d4f3246d67c6ef0eb0be2b1c33987cf260) 13 June 2023, 09:15:19 UTC
017b959 [3.12] gh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (GH-105686) (#105710) All fields must be explicitly initialised to prevent manipulation of uninitialised fields in dealloc. Align initialisation order with the layout of the object structs. (cherry picked from commit ca3cc4b95d66f7527ebe0ba4cdb1907082d9bfc8) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 12 June 2023, 22:12:17 UTC
77bdeeb [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 4f7d3b602d47d61137e82145f601dccfe6f6cd3c) Co-authored-by: Dora203 <66343334+sku2000@users.noreply.github.com> 12 June 2023, 16:50:58 UTC
2eed1f5 [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 2b90796be6959d5ef46b38c434a514fce25be971) Co-authored-by: Petr Viktorin <encukou@gmail.com> 12 June 2023, 16:24:21 UTC
9e3e5d5 [3.12] ARM64 clamping bug also exists in MSVC 14.35 (GH-105679) (#105695) ARM64 clamping bug also exists in MSVC 14.35 (GH-105679) (cherry picked from commit 58f0bda34126ed790000451874b96140737f40ed) Co-authored-by: Steve Dower <steve.dower@python.org> 12 June 2023, 16:02:30 UTC
0b305e8 [3.12] gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674) (#105675) In sys_add_xoption(), 'value' may be uninitialized for some error paths. (cherry picked from commit a8d69fe92c65d636fc454cfb1825c357eb2e6325) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 12 June 2023, 09:15:45 UTC
d310fc7 [3.12] gh-105375: Harden pyexpat initialisation (#105606) (#105669) (cherry picked from commit 20a56d8becba1a5a958b167fdb43b1a1b9228095) Add proper error handling to add_errors_module() to prevent exceptions from possibly being overwritten. 11 June 2023, 21:35:13 UTC
a1034b5 [3.12] gh-105375: Improve error handling in the sys extension module (GH-105611) (#105665) In _PySys_AddXOptionWithError() and sys_add_xoption(), bail on first error to prevent exceptions from possibly being overwritten. (cherry picked from commit 41cddc2e93a285b81fa30ac542b088bd9d0112e9) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 21:12:17 UTC
82ac2be [3.12] gh-105375: Improve error handling in _ctypes (GH-105593) (#105663) Prevent repeated PyLong_FromVoidPtr() from possibly overwriting the current exception. (cherry picked from commit e8998e46a7ce8ad336e0941a6da6e50cb88d1e47) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 20:25:27 UTC
ed03895 [3.12] gh-105375: Improve error handling in PyUnicode_BuildEncodingMap() (GH-105491) (#105661) Bail on first error to prevent exceptions from possibly being overwritten. (cherry picked from commit 555be81026fe1205d16c02f6321221381174cd07) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 20:01:18 UTC
db5022c [3.12] gh-105375: Improve PyErr_WarnExplicit() error handling (GH-105610) (#105659) Bail on first error to prevent exceptions from possibly being overwritten. (cherry picked from commit 567d6ae8e77579173510fc948ac06b2ababf3d40) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 19:51:30 UTC
c14f6ea [3.12] gh-105375: Improve posix error handling (GH-105592) (#105598) Fix a bug where an IndexError could end up being overwritten. (cherry picked from commit f668f73bc88cce0112b304d87aa998fb28013c71) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 19:33:30 UTC
071d559 [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 845e593c4ec97dd9f73b50536c1e1e7ed10ceecd) Co-authored-by: litlighilit <97860435+litlighilit@users.noreply.github.com> 11 June 2023, 14:31:04 UTC
122a1a2 [3.12] gh-105375: Improve error handling in the builtins extension module (GH-105585) (#105649) (cherry picked from commit d4fa52934a282df51cff800eee5caeb94a229547) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 11:17:48 UTC
b4b5565 [3.12] gh-105375: Improve _decimal error handling (GH-105605) (#105647) Fix a bug where an exception could end up being overwritten. (cherry picked from commit c932f7284977ebf813313157c52d716ba225a7ac) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 10:55:18 UTC
36ecbc3 [3.12] gh-105375: Harden _datetime initialisation (GH-105604) (#105645) Improve error handling so init bails on the first exception. (cherry picked from commit 16d49680b56e00c53c00683b949138e584669fd3) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 10:46:33 UTC
85a1a09 [3.12] gh-105375: Harden _ssl initialisation (GH-105599) (#105642) Add proper error handling to prevent reference leaks and overwritten exceptions. (cherry picked from commit 01f4230460454d4a849a5ba93320142c1a0c93a8) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 10:26:52 UTC
d3c69ed [3.12] gh-105375: Improve array.array exception handling (GH-105594) (#105644) Fix a bug where 'tp_richcompare' could end up overwriting an exception. (cherry picked from commit 35cff545db7c7912046c0ce5627db2e4d2b60f57) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 11 June 2023, 10:24:22 UTC
bf6e0e6 [3.12] gh-99108: Mention HACL\* in the hashlib docs. (GH-105634) (#105635) gh-99108: Mention HACL\* in the hashlib docs. (GH-105634) (cherry picked from commit 3a314f7c3df0dd7c37da7d12b827f169ee60e1ea) Co-authored-by: Gregory P. Smith <greg@krypto.org> 10 June 2023, 19:10:04 UTC
e2bbe62 [3.12] Cleanup and clarify our hashlib docs. (GH-105624) (#105632) Cleanup and clarify our hashlib docs. (GH-105624) Clarify and improve our hashlib docs. Now with 50% less mess! (cherry picked from commit 0d1d6ab966ff4e4d651d0dee0ec9a2f868ef42da) Co-authored-by: Gregory P. Smith <greg@krypto.org> 10 June 2023, 18:49:59 UTC
8c4cf96 [3.12] gh-105375: Improve error handling in `zoneinfo` module (GH-105586) (#105612) Fix bugs where exceptions could end up being overwritten because of deferred error handling. (cherry picked from commit 33c92c4f15539806c8aff8574ff30a8b307e3e4d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 09 June 2023, 23:22:10 UTC
4fbbf69 [3.12] gh-105375: Harden error handling in `_testcapi/heaptype.c` (GH-105608) (#105615) Bail on first error in heapctypesubclasswithfinalizer_finalize() (cherry picked from commit d636d7dfe714e7168b342c7ea5f9f9d3b3569ed0) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 09 June 2023, 23:21:42 UTC
5dae2b1 [3.12] Docs: fix formatting in 2023-06-09-12-59-18 NEWS item (GH-105607) (#105614) (cherry picked from commit 91441bf7cbaefbd328ee7efa59a06e661f61542e) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 09 June 2023, 21:53:53 UTC
ae6e002 [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> 09 June 2023, 21:40:07 UTC
411366c [3.12] gh-105375: Improve error handling in _elementtree (GH-105591) (#105600) Fix bugs where exceptions could end up being overwritten. (cherry picked from commit 00b599ab5a76023fa0083d7cc5d3c569342a5191) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 09 June 2023, 21:15:24 UTC
e0087df [3.12] gh-105375: Improve errnomodule error handling (#105590) (#105596) (cherry picked from commit eede1d2f48b4fe7f7918952d9ebeb744b58668c1) Bail immediately if an exception is set, to prevent exceptions from being overwritten. 09 June 2023, 20:36:53 UTC
04b76ec [3.12] gh-105375: Improve _pickle error handling (#105475) (#105584) (cherry picked from commit 89aac6f6b7b3af046ec137121c90732289e79efc) Error handling was deferred in some cases, which could potentially lead to exceptions being overwritten. 09 June 2023, 18:08:32 UTC
6540493 [3.12] gh-105375: Improve error handling in compiler_enter_scope() (GH-105494) (#105581) (cherry picked from commit 6c832ddcf28187f86100c790afb16a0223d945d0) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 09 June 2023, 17:23:45 UTC
bc365da [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 b8fa7bda4f286503447dc12327b789bbfc836458) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 09 June 2023, 17:15:55 UTC
16b1cdc [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> 09 June 2023, 16:58:14 UTC
97d846d [3.12] Clarify the supported cases in the tokenize module (GH-105569) (#105573) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> 09 June 2023, 16:00:42 UTC
7c298d2 [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 8e755923c97d689ba7c7fe8deb50c1b169263264) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 09 June 2023, 15:37:33 UTC
d29e86b [3.12] gh-102304: Fix Py_INCREF() for limited C API 3.9 (#105553) * gh-102304: Fix Py_INCREF() for limited C API 3.9 (#105550) When Python is built in debug mode (Py_REF_DEBUG macro), Py_INCREF() and Py_DECREF() of the limited C API 3.9 (and older) now call Py_IncRef() and Py_DecRef(), since _Py_IncRef() and _Py_DecRef() were added to Python 3.10. (cherry picked from commit 7ba0fd9f87ad75f8eda8e002c2fc71049b815f33) * gh-102304: Remove Py_INCREF() doc change (#105552) Py_INCREF() was made compatible again with Python 3.9 and older in the limited API of Python debug mode. (cherry picked from commit 58e4b69f698e6fd0694a58f18679bbe0e7e50e91) 09 June 2023, 10:32:46 UTC
2f4a2d6 [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 4ff5690e591b7d11cf11e34bf61004e2ea58ab3c) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 09 June 2023, 01:01:51 UTC
68eeab7 [3.12] CI: Configure macOS build as per updated devguide recommendations (GH-105533) (#105536) (cherry picked from commit a5f23d411062f9f29f8a7d7ddefe60d5d8e17d2e) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 08 June 2023, 23:00:53 UTC
77c03a3 [3.12] gh-100227: Lock Around Modification of the Global Allocators State (gh-105516) (gh-105532) The risk of a race with this state is relatively low, but we play it safe anyway. We do avoid using the lock in performance-sensitive cases where the risk of a race is very, very low. (cherry picked from commit 68dfa496278aa21585eb4654d5f7ef13ef76cb50) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> 08 June 2023, 22:35:53 UTC
3eccd95 [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 bb3454c1a75c90da3c34c060eb23403fed3fd958) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 08 June 2023, 22:29:24 UTC
f565fed [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 3ee921d84f06da9dfa8aa29e0d33778b9dbf8f23) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> 08 June 2023, 21:57:33 UTC
b08ea9a [3.12] gh-100227: Lock Around Adding Global Audit Hooks (gh-105515) (gh-105525) The risk of a race with this state is relatively low, but we play it safe anyway. (cherry picked from commit e822a676f1f3bef6c5413e9b856db481c08ac2a5) 08 June 2023, 21:05:47 UTC
2ad2bd8 [3.12] gh-100227: Lock Around Use of the Global "atexit" State (gh-105514) (gh-105517) The risk of a race with this state is relatively low, but we play it safe anyway. (cherry picked from commit 7799c8e678f759c7787785c6287140abe641d1b9) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> 08 June 2023, 19:27:44 UTC
8698fa8 [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 34c63b86d3c33a85acf55a0c5c118304754e145d) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> 08 June 2023, 19:00:04 UTC
1f90b2f [3.12] test_types: Replace raw assert statements (GH-105500) (#105507) (cherry picked from commit a8eb7372eebe182fd4ef7381a742d84a368a7d1b) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 08 June 2023, 15:19:11 UTC
3c5f0ea [3.12] Further improve docs for `typing.Annotated` (GH-105498) (#105503) Further improve docs for `typing.Annotated` (GH-105498) (cherry picked from commit d213c2990f0db62ed39fc5468977f989c2658675) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 08 June 2023, 15:12:35 UTC
2b6f475 [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 9d35a71a76cb033598ce136ea655d9e452fe3af0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 08 June 2023, 06:57:21 UTC
ae25f1c [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 ffeaec7e60c88d585deacb10264ba7a96e5e52df) 07 June 2023, 23:25:45 UTC
4b2263e [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 f5df347fcf5fe029edbe6bf274da0f4880401852) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 07 June 2023, 22:54:42 UTC
3d4a786 [3.12] gh-105390: Add explicit type cast (GH-105466) (#105472) 07 June 2023, 22:46:24 UTC
1e12877 [3.12] gh-94673: Ensure subtypes are readied only once in math.trunc() (gh-105465) (gh-105471) Fixes a typo in d2e2e53. (cherry picked from commit 5394bf92aa6516feb3322d8372d1579bd9c1417b) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com> 07 June 2023, 20:11:10 UTC
4eadfb1 [3.12] gh-90015: Document that PEP-604 unions do not support forward references (GH-105366) (#105460) gh-90015: Document that PEP-604 unions do not support forward references (GH-105366) (cherry picked from commit fbdee000de47ae96fbf53ce8908e8efbb23cfba4) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 07 June 2023, 18:11:48 UTC
d309257 [3.12] Fix grammar and improve clarity for an deprecation message. (GH-105457) (#105458) 07 June 2023, 17:41:04 UTC
9a7c4a5 [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 d63a7c3694d5c4484fcaa01c33590b1d4bc2559e) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 07 June 2023, 15:04:14 UTC
d36aa24 [3.12] gh-105437: Improve tests of type params names for PEP 695 (GH-105438) (#105452) (cherry picked from commit 76883af6bf28b7e810df172bd6762bf2cb64df08) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 07 June 2023, 14:35:12 UTC
98ccc2d [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 18309ad94bb1ae0b092f34dc3fd54199876a6ebd) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 07 June 2023, 14:30:39 UTC
241c36e [3.12] gh-97797: Improve documentation for typing.Annotated (GH-105365) (#105448) gh-97797: Improve documentation for typing.Annotated (GH-105365) (cherry picked from commit e26d296984b2b6279231922ab0940d904aa6144e) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 07 June 2023, 13:57:25 UTC
92ab560 [3.12] Improve docs for `typing.TypeAlias` (GH-105372) (#105446) Improve docs for `typing.TypeAlias` (GH-105372) (cherry picked from commit c5ec51ec8f4508e1f01f6d98ac8364a13da9bec7) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 07 June 2023, 13:45:54 UTC
117c153 [3.12] gh-105435: Fix spurious NEWLINE token if file ends with comment without a newline (GH-105442) (#105444) 07 June 2023, 13:07:57 UTC
bb6ea72 [3.12] gh-105375: Improve error handling in sqlite3 collation callback (GH-105412) (#105440) Check for error after each call to PyUnicode_FromStringAndSize(). (cherry picked from commit a24a780d937109a0982d807473ae410cc75b0e3b) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 07 June 2023, 11:43:18 UTC
c84d4d1 [3.12] gh-105390: Correctly raise TokenError instead of SyntaxError for tokenize errors (GH-105399) (#105439) 07 June 2023, 11:38:36 UTC
c607551 [3.12] gh-89886: Use Autoconf quadrigraphs where appropriate (#105226) (#105423) 07 June 2023, 07:41:17 UTC
2cfe778 [3.12] Improve code examples in `typing.rst` (GH-105346) (#105422) Improve code examples in `typing.rst` (GH-105346) (cherry picked from commit 81c81328a4fa13fead6f8cc9053a1a32a62a0279) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 07 June 2023, 07:00:22 UTC
a36fb69 [3.12] typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353) (#105420) typing docs: Make the PEPs list an expandable section, hidden by default (GH-105353) (cherry picked from commit d7645124f56c8832a7630a7f76c99e2630e685d7) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 07 June 2023, 06:48:44 UTC
ca4649a [3.12] GH-95088: Clarify rules for parsing an item key for format strings (GH-103779) (#105419) GH-95088: Clarify rules for parsing an item key for format strings (GH-103779) (cherry picked from commit 3e7316d7e8969febb56fbc7416d483b073bd1702) Co-authored-by: achhina <amanschhina@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 07 June 2023, 03:56:16 UTC
f4969eb [3.12] `typing.NewType` docs: the future performance improvements are now in the past (GH-105354) (#105414) `typing.NewType` docs: the future performance improvements are now in the past (GH-105354) (cherry picked from commit 5f65ff0370e1123084ff300a5ff02cd57623b575) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 07 June 2023, 03:55:37 UTC
84133c5 [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 9a89f1bf1e7bb819fe7240be779c99a84f47ea46) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 07 June 2023, 00:51:16 UTC
back to top