summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.12] gh-107905: Test raising `__value__` for `TypeAliasType` (GH-107997) ↵Miss Islington (bot)2023-08-211-0/+18
| | | | | | | | (#108217) gh-107905: Test raising `__value__` for `TypeAliasType` (GH-107997) (cherry picked from commit 13104f3b7412dce9bf7cfd09bf2d6dad1f3cc2ed) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Run sphinx-lint on Misc/NEWS.d/next/ (GH-108212) (#108213)Hugo van Kemenade2023-08-211-1/+1
| | | Run sphinx-lint on Misc/NEWS.d/next/
* [3.12] gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846) ↵Miss Islington (bot)2023-08-214-9/+156
| | | | | | | | | | | (#108211) gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846) (cherry picked from commit acbd3f9c5c5f23e95267714e41236140d84fe962) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
* [3.12] gh-107396: tarfiles: set self.exception before _init_read_gz() ↵Miss Islington (bot)2023-08-213-1/+19
| | | | | | | | | | | | | | | | | (GH-107485) (#108207) gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485) In the stack call of: _init_read_gz() ``` _read, tarfile.py:548 read, tarfile.py:526 _init_read_gz, tarfile.py:491 ``` a try;except exists that uses `self.exception`, so it needs to be set before calling _init_read_gz(). (cherry picked from commit 37135d25e269ede92bc7da363bebfa574782e59a) Co-authored-by: balmeida-nokia <83089745+balmeida-nokia@users.noreply.github.com>
* [3.12] gh-107916: Save the error code before decoding the filename in ↵Miss Islington (bot)2023-08-212-0/+12
| | | | | | | | PyErr_SetFromErrnoWithFilename() etc (GH-107929) (#108205) gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc (GH-107929) (cherry picked from commit 80bdebdd8593f007a2232ec04a7729bba6ebf12c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-105736: Sync pure python version of OrderedDict with the C version ↵Miss Islington (bot)2023-08-213-7/+23
| | | | | | | | | (GH-108098) (#108200) gh-105736: Sync pure python version of OrderedDict with the C version (GH-108098) (cherry picked from commit 20cc90c0df3e368fe7cb63d958f0b17a78fa9d0a) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.12] Improve references in the tutorial (GH-108069) (#108203)Miss Islington (bot)2023-08-216-49/+48
| | | | | | | | | | Improve references in the tutorial (GH-108069) * Use full qualified names for references (even if they do not work now, they will work in future). * Silence references to examples. (cherry picked from commit 622ddc41674c2566062af82f7b079aa01d2aae8c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107895: Fix test_asyncio.test_runners when run it in CPython's ↵Miss Islington (bot)2023-08-211-1/+4
| | | | | | | | "development mode" (GH-108168) (#108196) gh-107895: Fix test_asyncio.test_runners when run it in CPython's "development mode" (GH-108168) (cherry picked from commit 014a5b71e7538926ae1c03c8c5ea13c96e741be3) Co-authored-by: Joon Hwan 김준환 <xncbf12@gmail.com>
* [3.12] Docs: document 'manager' and '_log' attrs of logging.Logging ↵Miss Islington (bot)2023-08-211-0/+8
| | | | | | | | | | | (GH-108145) (#108190) Docs: document 'manager' and '_log' attrs of logging.Logging (GH-108145) (cherry picked from commit f904aa4e1f6943e5bd9a8a73cf762f063e6fa247) Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Resolve reference warnings in faq/library.rst (GH-108149) (#108182)Miss Islington (bot)2023-08-202-6/+8
| | | | | | | | Resolve reference warnings in faq/library.rst (GH-108149) (cherry picked from commit 6323bc33ff9f445a947adf4af42b8be7e44c730c) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Resolve reference warnings in faq/design.rst (GH-108148) (#108180)Miss Islington (bot)2023-08-202-3/+2
| | | | | | Resolve reference warnings in faq/design.rst (GH-108148) (cherry picked from commit 92815cc7cf3df8ab702c7cea4efaef349a4b0480) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] Docs: Fix Sphinx warnings in sys.rst (#108106) (#108178)Erlend E. Aasland2023-08-203-115/+153
| | | | | | | | | | | | | | | | | | (cherry picked from commit 29fa7afef94d74e18d97485c085d1ccf80c16ca3) - Mark up named tuple attributes as attributes - Remove links for external functions - io.BufferedIOBase has no 'buffer' attribute; remove the link and mark up using :attr:`!buffer` - (Re)format some tables as bullet lists: - sys._emscripten_info - sys.hash_info - sys.int_info - sys.thread_info - In the paragraphs mentioning 'f_trace_lines' and 'f_trace_opcodes', add links to the frame objects reference. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] Docs: Fix Sphinx warnings in logging.rst (GH-108139) (#108174)Erlend E. Aasland2023-08-202-19/+20
| | | | | (cherry picked from commit c735e79afb62324624864e1943f84825249f58ed) Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* [3.12] gh-107915: Handle errors in C API functions PyErr_Set*() and ↵Miss Islington (bot)2023-08-205-9/+219
| | | | | | | | | | | | | | | | | | | | PyErr_Format() (GH-107918) (#108134) * gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918) Such C API functions as PyErr_SetString(), PyErr_Format(), PyErr_SetFromErrnoWithFilename() and many others no longer crash or ignore errors if it failed to format the error message or decode the filename. Instead, they keep a corresponding error. (cherry picked from commit 633ea217a85f6b6ba5bdbc73094254d5811b3485) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * Define PY_SSIZE_T_CLEAN. --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Resolve reference warnings in faq/programming.rst (GH-108150) (#108170)Miss Islington (bot)2023-08-202-4/+3
| | | | | | Resolve reference warnings in faq/programming.rst (GH-108150) (cherry picked from commit a390ec20f5a85b9c16e8708f117667783d08863c) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] Docs: Fix Sphinx warnings in license.rst (GH-108142) (#108167)Miss Islington (bot)2023-08-202-6/+5
| | | | | | | | | Docs: Fix Sphinx warnings in license.rst (GH-108142) - Fix links to stdlib modules - Silence links to external functions (cherry picked from commit 4d4393139fae39db26dead33529b6ae0bafbfc58) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-107659: Improve wording of the description of `ctypes.pointer` and ↵Miss Islington (bot)2023-08-201-7/+7
| | | | | | | | | | `ctypes.POINTER` (GH-107769) (#108163) gh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes.POINTER` (GH-107769) (cherry picked from commit beffb30dc7a07044f4198245d049ddda1f4b24db) Co-authored-by: Tomas R <tomas.roun8@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] gh-107619: Extend functools LRU cache docs with generators and async ↵Miss Islington (bot)2023-08-201-2/+3
| | | | | | | | | | functions (GH-107934) (#108161) gh-107619: Extend functools LRU cache docs with generators and async functions (GH-107934) (cherry picked from commit 1a713eac47b26899044752f02cbfcb4d628dda2a) Co-authored-by: Hadházy Tamás <85063808+Hels15@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] Fix patchcheck for `asyncio.tasks` (GH-108159) (#108160)Miss Islington (bot)2023-08-201-9/+9
| | | | | | Fix patchcheck for `asyncio.tasks` (GH-108159) (cherry picked from commit b1e5d2c601bbd3d435b60deef4818f3622bdfca3) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] Fix misspellings in sysconfig docs (GH-108156) (#108157)Miss Islington (bot)2023-08-201-5/+5
| | | | | | Fix misspellings in sysconfig docs (GH-108156) (cherry picked from commit 1dc0c58d2b17819720d184ec0287a8a9b1dc347e) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* [3.12] gh-107980: fix doc role for asyncio.timeouts (GH-108126) (#108152)Miss Islington (bot)2023-08-191-3/+3
| | | | | | gh-107980: fix doc role for asyncio.timeouts (GH-108126) (cherry picked from commit a47c13cae5b32e6f3d7532cc6dbb4e1ac31219de) Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
* [3.12] Docs: Remove links to external C functions and macros in os.rst ↵Miss Islington (bot)2023-08-191-25/+27
| | | | | | | | | (GH-108138) (#108143) Docs: Remove links to external C functions and macros in os.rst (GH-108138) (cherry picked from commit c31c61c04e55ef431615ffec959d84ac73a3db81) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-108083: Don't ignore exceptions in sqlite3.Connection.__init__() ↵Erlend E. Aasland2023-08-192-31/+78
| | | | | | | | | | | | | | | | and .close() (#108084) (#108141) - Add explanatory comments - Add return value to connection_close() for propagating errors - Always check the return value of connection_exec_stmt() - Assert pre/post state in remove_callbacks() - Don't log unraisable exceptions in case of interpreter shutdown - Make sure we're not initialized if reinit fails - Try to close the database even if ROLLBACK fails (cherry picked from commit fd195092204aa7fc9f13c5c6d423bc723d0b3520) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107801: Improve the accuracy of os.lseek docs (#107935) (#108136)Erlend E. Aasland2023-08-193-14/+33
| | | | | | | | | | - name the last parameter *whence*, like it is for seek() methods on file objects - add param docstrings - structure the valid *whence* params (cherry picked from commit dd4442c8f597af1ec3eaf20f7ad89c4ac7e2dbc9) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] Docs: format sys.float_info properly (GH-108107) (#108130)Miss Islington (bot)2023-08-191-52/+73
| | | | | | | | | | | | | | | Docs: format sys.float_info properly (GH-108107) - Normalise capitalisation and punctuation - Use attribute markup for named tuple attributes - Use :c:macro: markup for C macros - Use a list for the 'rounds' attribute values - Use list-table, for better .rst readability - Remove one unneeded sys.float_info.dig link (cherry picked from commit ca0c6c1f1ef79d10bc49b61d638d87cde265aa94) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-101100: Only show GitHub check annotations on changed doc ↵Miss Islington (bot)2023-08-192-31/+208
| | | | | | | | | | | | | | | | | | paragraphs (GH-108065) (#108127) gh-101100: Only show GitHub check annotations on changed doc paragraphs (GH-108065) * Only show GitHub check annotations on changed doc paragraphs * Improve check-warnings script arg parsing following Hugo's suggestions * Factor filtering warnings by modified diffs into helper function * Build docs on unmerged branch so warning lines match & avoid deep clone --------- (cherry picked from commit eb953d6e4484339067837020f77eecac61f8d4f8) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897) ↵Miss Islington (bot)2023-08-192-3/+4
| | | | | | | | (#108121) gh-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897) (cherry picked from commit dc7b630b2359663bb7b8212d9f2f720c978d3daa) Co-authored-by: Ned Deily <nad@python.org>
* [3.12] gh-101100: Docs: Check Sphinx warnings and fail if improved ↵C.A.M. Gerlach2023-08-185-113/+161
| | | | | | | | | | | | | | | | (GH-106460) (#108116) * gh-101100: Docs: Check Sphinx warnings and fail if improved (#106460) (cherry picked from commit 806d7c98a5da5c1fd2e52a5b666f36ca4f545092) * [3.12] gh-101100: Docs: Check Sphinx warnings and fail if improved (GH-106460). (cherry picked from commit 806d7c98a5da5c1fd2e52a5b666f36ca4f545092) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> --------- Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-107565: Update multissltests and GitHub CI workflows to use ↵Miss Islington (bot)2023-08-183-7/+9
| | | | | OpenSSL 1.1.1v, 3.0.10, and 3.1.2. (GH-108118) Co-authored-by: Ned Deily <nad@python.org>
* [3.12] Docs: emphasise warning and add accurate markups for ↵Miss Islington (bot)2023-08-181-17/+21
| | | | | | | | sys.unraisablehook (GH-108105) (#108109) Docs: emphasise warning and add accurate markups for sys.unraisablehook (GH-108105) (cherry picked from commit cc58ec9724772a8d5c4a5c9a6525f9f96e994227) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-107801: Improve the docs of the SEEK_* constants (#108099) (#108108)Erlend E. Aasland2023-08-181-4/+14
| | | (cherry picked from commit 02079b010c39a89b284e8f0bb6d5f378e554260e)
* [3.12] Docs: Fix Sphinx warnings in io.rst (GH-107903) (#108093)Miss Islington (bot)2023-08-182-36/+36
| | | | | | | | | | | | Docs: Fix Sphinx warnings in io.rst (GH-107903) - Mark up parameter and argument names properly - If possible, link to docs for methods like `seek`, `tell`, `write`, `read`, etc. (cherry picked from commit 5c76899dadf3bdcfdedf6f30b3ab9742cb87af04) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: T. Wouters <thomas@python.org>
* [3.12] gh-107801: Document SEEK_HOLE and SEEK_DATA (GH-107936) (#108086)Miss Islington (bot)2023-08-171-2/+27
| | | | | | | | gh-107801: Document SEEK_HOLE and SEEK_DATA (GH-107936) (cherry picked from commit 8a19f225b948db1eebe1d9fc71a486258841f578) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Antoine Pitrou <antoine@python.org>
* [3.12] gh-107909: Test explicit `object` base in PEP695 generic classes ↵Miss Islington (bot)2023-08-171-0/+4
| | | | | | | | (GH-108001) (#108022) gh-107909: Test explicit `object` base in PEP695 generic classes (GH-108001) (cherry picked from commit b61f5995aebb93496e968ca8d307375fa86d9329) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-92584: Remove Installing Python Modules (Distutils version) ↵Adam Turner2023-08-175-1090/+3
| | | | | | | | | (GH-108020) (#108062) * [3.12] GH-92584: Remove Installing Python Modules (Distutils version) (GH-108020). (cherry picked from commit fbb7cbc0e92168077fd56de942901511e99ca60a) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-107298: Fix some references in the C API documentation (GH-108072) ↵Miss Islington (bot)2023-08-1711-20/+20
| | | | | | | | (#108074) gh-107298: Fix some references in the C API documentation (GH-108072) (cherry picked from commit f51f0466c07eabc6177c2f64f70c952dada050e8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-107298: Add standard exceptions and warnings in the nitpick_ignore ↵Miss Islington (bot)2023-08-171-0/+71
| | | | | | | | list (GH-108029) (#108070) gh-107298: Add standard exceptions and warnings in the nitpick_ignore list (GH-108029) (cherry picked from commit c9d83f93d804b80ee14480466ebee63a6f97dac2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-108000: Test that `lambda` also has `__type_params__` (GH-108002) ↵Miss Islington (bot)2023-08-171-7/+10
| | | | | | | | (#108019) gh-108000: Test that `lambda` also has `__type_params__` (GH-108002) (cherry picked from commit a8d440b3837273926af5ce996162b019290ddad5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-107987: Remove the Distributing Python Modules guide (GH-108016) ↵Miss Islington (bot)2023-08-175-170/+16
| | | | | | | | (#108081) GH-107987: Remove the Distributing Python Modules guide (GH-108016) (cherry picked from commit 33e6e3fec02ff3035dec52692542d3dd10124bef) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-92584: Remove references to Distutils in configure.rst (GH-108043) ↵Miss Islington (bot)2023-08-161-11/+6
| | | | | | | | | | (#108063) GH-92584: Remove references to Distutils in configure.rst (GH-108043) Remove references to Distutils in configure.rst (cherry picked from commit e88eb3775ecdcb3af6c6d694a935b7fa5f41e5ce) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-92584: Redirect macOS package installation to the PPUG (GH-108044) ↵Miss Islington (bot)2023-08-161-6/+2
| | | | | | | | (#108058) GH-92584: Redirect macOS package installation to the PPUG (GH-108044) (cherry picked from commit 902864256cb261428ae9682ca0ffddd597e1f894) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` ↵Miss Islington (bot)2023-08-162-4/+4
| | | | | | | | | | (GH-108040) (#108060) GH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` (GH-108040) Remove references to Distutils in ``PYTHONUSERBASE`` (cherry picked from commit 636ca313b2f7ce09a311889995778dccae8ebe40) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-107298: Fix C API Buffer documentation (GH-108011). (#108048)Serhiy Storchaka2023-08-163-11/+14
| | | | | (cherry picked from commit c2941cba7a986e6158eebb2a0bf33906dcd78616) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-106242: Fix path truncation in os.path.normpath (GH-106816) (#107981)Steve Dower2023-08-165-10/+31
| | | | | | | | | * gh-106242: Fix path truncation in os.path.normpath (GH-106816) * gh-106242: Minor fixup to avoid compiler warnings --------- Co-authored-by: Finn Womack <flan313@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-92584: Remove reference to Distutils in ``cx_Freeze``'s ↵Miss Islington (bot)2023-08-161-2/+2
| | | | | | | | | | description (GH-108047) (#108057) GH-92584: Remove reference to Distutils in ``cx_Freeze``'s description (GH-108047) Remove reference to Distutils in ``cx_Freeze``'s description (cherry picked from commit 57fcf96e4f21b8955b3ae4b4d70e4b756949712f) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-91051: fix type watcher test to be robust to existing watcher ↵Miss Islington (bot)2023-08-161-6/+4
| | | | | | | | (GH-107989) (#108053) gh-91051: fix type watcher test to be robust to existing watcher (GH-107989) (cherry picked from commit fce93c80ae2d792b8ca443b044e28abbf28bb89a) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] Remove Sphinx problem matcher to avoid annotating unchanged files ↵Miss Islington (bot)2023-08-162-44/+0
| | | | | | | | (GH-108005) (#108049) Remove Sphinx problem matcher to avoid annotating unchanged files (GH-108005) (cherry picked from commit 0d7f5d3ba3641f8c7d32facbb177bf70ee7520d1) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-92584: Drop reference to Distutils in ``site.USER_BASE`` ↵Miss Islington (bot)2023-08-161-1/+1
| | | | | | | | | | (GH-108031) (#108039) GH-92584: Drop reference to Distutils in ``site.USER_BASE`` (GH-108031) Drop reference to Distutils in ``site.USER_BASE`` (cherry picked from commit f2a9dfdee9de381e4adf29a7f1e2aec56580bfda) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688) ↵Miss Islington (bot)2023-08-167-39/+30
| | | | | | | | | | (#107709) gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688) In future Tcl and Tk versions can be desynchronized. (cherry picked from commit 3c8e8f3ceeae08fc43d885f5a4c65a3ee4b1a2c8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Docs: Fix more Sphinx annotations in ctypes.rst (GH-107708) (#107717)Miss Islington (bot)2023-08-163-43/+44
| | | | | | Docs: Fix more Sphinx annotations in ctypes.rst (GH-107708) (cherry picked from commit 8c9af6b9a0d6fc9cb237e96588d8dcab727e32b8) Co-authored-by: Erlend E. Aasland <erlend@python.org>