summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-109179: Fix traceback display for SyntaxErrors with notes ↵Irit Katriel2023-10-023-34/+34
| | | | | | (#109197) (#109280) (cherry picked from commit ecd21a629a2a30bcae89902f7cad5670e9441e2c)
* [3.12] gh-107219: Fix concurrent.futures terminate_broken() (GH-109244) ↵Miss Islington (bot)2023-10-023-0/+27
| | | | | | | | | | | | | | | | | | | | | | (#109254) gh-107219: Fix concurrent.futures terminate_broken() (GH-109244) Fix a race condition in concurrent.futures. When a process in the process pool was terminated abruptly (while the future was running or pending), close the connection write end. If the call queue is blocked on sending bytes to a worker process, closing the connection write end interrupts the send, so the queue can be closed. Changes: * _ExecutorManagerThread.terminate_broken() now closes call_queue._writer. * multiprocessing PipeConnection.close() now interrupts WaitForMultipleObjects() in _send_bytes() by cancelling the overlapped operation. (cherry picked from commit a9b1f84790e977fb09f75b148c4c4f5924a6ef99) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-50644: Forbid pickling of codecs streams (GH-109180) (#109231)Miss Islington (bot)2023-10-023-0/+95
| | | | | | | | | | | | | gh-50644: Forbid pickling of codecs streams (GH-109180) Attempts to pickle or create a shallow or deep copy of codecs streams now raise a TypeError. Previously, copying failed with a RecursionError, while pickling produced wrong results that eventually caused unpickling to fail with a RecursionError. (cherry picked from commit d6892c2b9263b39ea1c7905667942914b6a24b2c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-109207: Fix SystemError when printing symtable entry object. ↵Miss Islington (bot)2023-10-023-3/+7
| | | | | | | | (GH-109225) (#109227) gh-109207: Fix SystemError when printing symtable entry object. (GH-109225) (cherry picked from commit 429749969621b149c1a7c3c004bd44f52bec8f44) Co-authored-by: 云line <31395137+yunline@users.noreply.github.com>
* [3.12] Check the result of PySet_Contains() for error in Python/symtable.c ↵Miss Islington (bot)2023-10-021-15/+57
| | | | | | | | (GH-109146) (#109153) Check the result of PySet_Contains() for error in Python/symtable.c (GH-109146) (cherry picked from commit 87a7faf6b68c8076e640a9a1347a255f132d8382) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-104690: thread_run() checks for tstate dangling pointer (#109056) ↵Victor Stinner2023-10-024-20/+35
| | | | | | | | | | | | | | (#109133) gh-104690: thread_run() checks for tstate dangling pointer (#109056) thread_run() of _threadmodule.c now calls _PyThreadState_CheckConsistency() to check if tstate is a dangling pointer when Python is built in debug mode. Rename ceval_gil.c is_tstate_valid() to _PyThreadState_CheckConsistency() to reuse it in _threadmodule.c. (cherry picked from commit f63d37877ad166041489a968233b57540f8456e8)
* [3.12] gh-88943: Improve syntax error for non-ASCII character that follows a ↵Miss Islington (bot)2023-10-023-1/+8
| | | | | | | | | | numerical literal (GH-109081) (#109090) gh-88943: Improve syntax error for non-ASCII character that follows a numerical literal (GH-109081) It now points on the invalid non-ASCII character, not on the valid numerical literal. (cherry picked from commit b2729e93e9d73503b1fda4ea4fecd77c58909091) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Merge branch '3.12' of https://github.com/python/cpython into 3.12Thomas Wouters2023-10-021-0/+2
|\
| * [3.12] gh-109496: Skip test_capi.test_decref_freed_object() on ASAN ↵Miss Islington (bot)2023-10-021-0/+2
| | | | | | | | | | | | (GH-109573) (#109578) Co-authored-by: Victor Stinner <vstinner@python.org>
* | Post 3.12.0Thomas Wouters2023-10-021-1/+1
| |
* | Python 3.12.0v3.12.0Thomas Wouters2023-10-0212-72/+134
|/
* [3.12] GH-109190: Announce final release in What's New in Python 3.12 ↵Miss Islington (bot)2023-10-021-1/+1
| | | | | | | | | | (GH-110117) (#110215) GH-109190: Announce final release in What's New in Python 3.12 (GH-110117) Prepare What's New in Python 3.12 for final release (cherry picked from commit 6139bf5e0c755ed22bdfb027a5299493f0c71be9) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] Docs: bump Pygments to fix contrast ratios to meet WCAG AA guidelines ↵Miss Islington (bot)2023-10-021-2/+1
| | | | | | | | (GH-110208) (#110210) Docs: bump Pygments to fix contrast ratios to meet WCAG AA guidelines (GH-110208) (cherry picked from commit 9cb8927bfc73b66e7c36ab02ca2a3077172ea0ac) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-92584: Move installation schemes overview to sysconfig docs ↵Miss Islington (bot)2023-10-023-18/+167
| | | | | | | | | | | | | | | | | | (GH-108018) (#110213) GH-92584: Move installation schemes overview to sysconfig docs (GH-108018) * Add new installation path functions subsection * Add content from install/index to sysconfig * Fix table * Update note about installers * Clean up the list of schemes, remove references to Distutils (cherry picked from commit f16e81f368d08891e28dc1f038c1826ea80d7801) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 ↵Miss Islington (bot)2023-10-021-4/+9
| | | | | | | | (GH-109928) (#109929) gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928) (cherry picked from commit 9dbfe2dc8e7bba25e52f9470ae6969821a365297) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] GH-101100: Fix reference warnings for ``namedtuple`` (GH-110113) ↵Miss Islington (bot)2023-10-022-4/+4
| | | | | | | | (#110135) GH-101100: Fix reference warnings for ``namedtuple`` (GH-110113) (cherry picked from commit cbdacc738a52a876aae5b74b4665d30a5f204766) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` ↵Miss Islington (bot)2023-10-021-3/+3
| | | | | | | | (GH-110142) (#110188) gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (GH-110142) (cherry picked from commit adf0f15a06c6e8ddd1a6d59b28efcbb26289f080) Co-authored-by: Quentin Agren <quentin.agren@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/site.rst` (GH-110144) ↵Hugo van Kemenade2023-10-023-13/+25
| | | | | | | | (#110187) (cherry picked from commit 31097df611bb5c8084190202e095ae47e8b81c0f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] GH-101100: Fix reference warnings for ``gettext`` (GH-110115) (#110140)Miss Islington (bot)2023-10-021-29/+26
| | | | | | GH-101100: Fix reference warnings for ``gettext`` (GH-110115) (cherry picked from commit 0449fe999d56ba795a852d83380fe06514139935) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-109991: Update Windows build to use OpenSSL 3.0.11 (GH-110054) ↵Miss Islington (bot)2023-10-023-4/+5
| | | | | | | | (#110056) gh-109991: Update Windows build to use OpenSSL 3.0.11 (GH-110054) (cherry picked from commit cf4c29725636e1a0dd2ebab443613b56ca6c9486) Co-authored-by: Zachary Ware <zach@python.org>
* [3.12] gh-109634: Fix `:samp:` syntax (GH-110073) (#110095)Miss Islington (bot)2023-09-293-3/+3
| | | | | | gh-109634: Fix `:samp:` syntax (GH-110073) (cherry picked from commit e27adc68ccee8345e05b7516e6b46f6c7ff53371) Co-authored-by: Jacob Coffee <jacob@z7x.org>
* [3.12] gh-101100: Fix references to ``URLError`` and ``HTTPError`` in ↵Miss Islington (bot)2023-09-291-8/+8
| | | | | | | | | ``howto/urllib2.rst`` (GH-107966) (#110086) gh-101100: Fix references to ``URLError`` and ``HTTPError`` in ``howto/urllib2.rst`` (GH-107966) (cherry picked from commit bfd94ab9e9f4055ecedaa500b46b0270da9ffe12) Co-authored-by: Yuki K <drsuaimqjgar@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` ↵Miss Islington (bot)2023-09-292-3/+2
| | | | | | | | | (GH-109424) (#110084) gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (GH-109424) (cherry picked from commit 8898a8683b5631c24d51a6a7babf55a255874950) Co-authored-by: Maciej Olko <maciej.olko@affirm.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/difflib.rst` (GH-110074) ↵Miss Islington (bot)2023-09-292-10/+9
| | | | | | | | (#110081) gh-101100: Fix sphinx warnings in `library/difflib.rst` (GH-110074) (cherry picked from commit d102d39bbe175f179f28e4d4bea99dc122da5f8e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-110045: Update symtable module for PEP 695 (GH-110066) (#110070)Miss Islington (bot)2023-09-295-5/+63
| | | | | | gh-110045: Update symtable module for PEP 695 (GH-110066) (cherry picked from commit 7dc2c5093ef027aab57bca953ac2d6477a4a440b) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Bytecode (GH-109821) (#110047)Adam Turner2023-09-282-2/+29
| | | | . (cherry picked from commit 526380e28644236bde9e41b949497ca1ee22653f)
* [3.12] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and ↵Miss Islington (bot)2023-09-283-7/+9
| | | | | | | | multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002) (#110005) gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002) (cherry picked from commit c88037d137a98d7c399c7bd74d5117b5bcae1543) Co-authored-by: Ned Deily <nad@python.org>
* [3.12] gh-109991: Update macOS installer to use OpenSSL 3.0.10. (#110004)Ned Deily2023-09-282-3/+4
| | | | | gh-109991: Update macOS installer to use OpenSSL 3.0.10. (cherry picked from commit 884cd180876f60dc65bf00e33c0435be9918e410)
* [3.12] gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (GH-109931) ↵Miss Islington (bot)2023-09-282-9/+8
| | | | | | | | | (#109937) gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (GH-109931) (cherry picked from commit 3538930d87e6bdd2bfffa3f674a62cc91d359d31) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] no-issue: Fix a typo in the parameter name of random.expovariate. ↵Miss Islington (bot)2023-09-271-1/+1
| | | | | | | | (gh-109902) (#109904) no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902) (cherry picked from commit 8100612bac2df1cbbb3a4cf646c4b82febf7807f) Co-authored-by: lohaswinner <lohaswinner@gmail.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Release highlights (GH-109770) ↵Miss Islington (bot)2023-09-271-167/+247
| | | | | | | | | | | | | | (#109971) * GH-109190: Copyedit 3.12 What's New: Release highlights (GH-109770) (cherry picked from commit b35f0843fc15486b17bc945dde08b306b8e4e81f) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * Delete bad merge leftovers --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/devmode.rst` (GH-109963) ↵Miss Islington (bot)2023-09-272-3/+3
| | | | | | | | | (#109966) gh-101100: Fix sphinx warnings in `library/devmode.rst` (GH-109963) (cherry picked from commit d9809e84fbf22ed8d90b212a9322260f7074bc9c) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-107298: Document PyMODINIT_FUNC macro (GH-109236) (#109947)Miss Islington (bot)2023-09-273-3/+27
| | | | | | | | | | | | gh-107298: Document PyMODINIT_FUNC macro (GH-109236) Document PyMODINIT_FUNC macro. Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are not documented. These macros should only be used to define the Python C API. They should not be used outside Python code base. (cherry picked from commit d7a27e527d7e669d2e45cff80ad725978226477c) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766) (#109925)Miss Islington (bot)2023-09-271-107/+170
| | | | | | | | | | | | | | | | * GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766) (cherry picked from commit 87ddfa74e2d37f6837351ed2bafc7d6d55fe2fd0) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix) (#109927) Merge the two ``os`` entries (cherry picked from commit 0e28d0f7a1bc3776cc07e0f8b91bc43fcdbb4206) --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-109889: comment out assertion indicating a failed optimization of ↵Irit Katriel2023-09-261-1/+7
| | | | | | | a redundant NOP (#109899) * [3.12] gh-109889: comment out assertion indicating a failed optimization of a redundant NOP * comment out the function to avoid warnings on it being unused
* [3.12] gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` ↵Hugo van Kemenade2023-09-262-11/+9
| | | | | | | | (GH-109881) (#109884) [3.12] gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (GH-109881). (cherry picked from commit 7c61a361fc2e93375e22849fffbc20b60e94dbde) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes ↵Adam Turner2023-09-261-47/+47
| | | | | (GH-109836). (#109880) (cherry picked from commit 86e7c611ac5bf067a697afbee6f9162704fd22db)
* [3.12] gh-109823: Adjust labels in compiler when removing an empty basic ↵Miss Islington (bot)2023-09-263-1/+15
| | | | | | | | block which is a jump target (GH-109839) (#109865) gh-109823: Adjust labels in compiler when removing an empty basic block which is a jump target (GH-109839) (cherry picked from commit d73c12b88c2275fd44e27c91c24f3ac85419d2b8) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations ↵Miss Islington (bot)2023-09-261-13/+94
| | | | | | | | | | | | | | | | section (GH-109751) (#109830) * GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section (GH-109751) (cherry picked from commit bccc1b78002c924e8f4121fea5de7df5eb127548) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * Remove the weakref get object functions --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Use the present tense ↵Miss Islington (bot)2023-09-261-30/+30
| | | | | | | | (GH-109754) (#109827) GH-109190: Copyedit 3.12 What's New: Use the present tense (GH-109754) (cherry picked from commit 4e478534d73e46aea5d10fb4e0ddf2c34440d0f6) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Trivia (GH-109760) (#109826)Miss Islington (bot)2023-09-251-7/+4
| | | | | | GH-109190: Copyedit 3.12 What's New: Trivia (GH-109760) (cherry picked from commit f08772cfd8f6602077e0989c1daa8bf74a8c15f1) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links ↵Miss Islington (bot)2023-09-251-4/+4
| | | | | | | | (GH-109753) (#109825) GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (GH-109753) (cherry picked from commit 7495a93e0f843c40ebc5925c6a35225d41e52654) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting ↵Miss Islington (bot)2023-09-251-2/+3
| | | | | | | | guidance (GH-109755) (#109816) GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance (GH-109755) (cherry picked from commit 7b8bfe1644c3d008c1b5c19a537ee7d19bc32c59) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Increase the prominence of the ↵Miss Islington (bot)2023-09-251-0/+7
| | | | | | | | setuptools removal (GH-109768) (#109815) GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools removal (GH-109768) (cherry picked from commit 09a73d50f687b9b388b0386f400d9ba5a7c5f2a5) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role ↵Miss Islington (bot)2023-09-251-11/+11
| | | | | | | | | (GH-109756) (#109806) GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (GH-109756) (cherry picked from commit 8d365b60bacf0a7edda24eba2d45aba1c2626fbc) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-101100: Fix sphinx warnings in ↵Miss Islington (bot)2023-09-242-2/+6
| | | | | | | | | | | `Doc/library/xml.etree.elementtree.rst` (GH-109799) (#109800) gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` (GH-109799) (cherry picked from commit 649768fb6781ba810df44017fee1975a11d65e2f) gh-101100: Fix shpinx warnings in `Doc/library/xml.etree.elementtree.rst` Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-109634: Use :samp: role (GH-109635) (#109776)Miss Islington (bot)2023-09-2430-95/+99
| | | | | | gh-109634: Use :samp: role (GH-109635) (cherry picked from commit 92af0cc580051fd1129c7a86af2cbadeb2aa36dc) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-100228: Document the os.fork threads DeprecationWarning. ↵Miss Islington (bot)2023-09-244-4/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-109767) (#109773) * gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767) Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs. Many reviews and doc cleanup edits by Adam & Hugo. 🥳 (cherry picked from commit 5e7ea95d9d5c3b80a67ffbeebd76ce4fc327dd8e) Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * link to the discussion thread from whatsnew Include the link to the discussion in the what's new text per @malemberg's comment on. https://github.com/python/cpython/pull/109767 (i'll follow up with a PR to main to include this edit there as well) --------- Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-95913: Add the release date for Python 3.11 (GH-109750) (#109771)Miss Islington (bot)2023-09-242-2/+1
| | | | | | GH-95913: Add the release date for Python 3.11 (GH-109750) (cherry picked from commit b10de68c6ceae1076cdc98c890b9802dc81a7f44) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] Docs: Update Donghee Na's name (GH-109743) (#109758)Hugo van Kemenade2023-09-2442-142/+142
| | | | | | | * Update Donghee Na's name in Docs/ * Update Donghee Na's name in Misc/ACKS * Update Donghee Na's name in Misc/NEWS.d/