summaryrefslogtreecommitdiff
path: root/Doc
AgeCommit message (Collapse)AuthorLines
2025-06-03Python 3.11.13v3.11.13Pablo Galindo-4/+4
2025-06-03[3.11] gh-135034: Normalize link targets in tarfile, add ↵T. Wouters-4/+83
`os.path.realpath(strict='allow_missing')` (GH-135037) (GH-135068) Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517. (cherry picked from commit 3612d8f51741b11f36f8fb0494d79086bac9390a) (cherry picked from commit c358142cab7ce621a2745262a90df967b357f61c) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Signed-off-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Seth Michael Larson <seth@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-02-18[3.11] gh-122544: Change OS image in GitHub Actions to Ubuntu 24.04 ↵Hugo van Kemenade-11737/+17771
(#122566) (#130260)
2025-02-13[3.11] Docs: pin python-docs-theme to 2025.2 (#129576)Adam Turner-1/+1
2024-12-11[3.11] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#124718) ↵Petr Viktorin-5/+31
(#127827) * [3.11] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (#124718) Make `versionchanged:: next`` expand to current (unreleased) version. When a new CPython release is cut, the release manager will replace all such occurences of "next" with the just-released version. (See the issue for release-tools and devguide PRs.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> (cherry picked from commit 7d24ea9db3e8fdca52058629c9ba577aba3d8e5c) gh-121277: Raise nice error on `next` as second argument to deprecated-removed (GH-124623) (cherry-picked from e349f73a5ad2856b0a7cbe4aef7cc081c7aed777) * Import VersionChange sphinx.domains.changeset.VersionChange exists at least since Sphinx 2.1, according to: https://www.sphinx-doc.org/en/master/extdev/deprecated.html * Get config from env * Use version, not arguments directly
2024-09-06[3.11] gh-102988: Adjust version numbers in versionadded directives (#123772)Petr Viktorin-2/+2
2024-09-06[3.11] [CVE-2023-27043] gh-102988: Reject malformed addresses in ↵Petr Viktorin-4/+25
email.parseaddr() (GH-111116) (#123767) Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). Add an optional 'strict' parameter to getaddresses() and parseaddr() functions. Patch by Thomas Dwyer. (cherry picked from commit 4a153a1d3b18803a684cd1bcc2cdf3ede3dbae19) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Thomas Dwyer <github@tomd.tel>
2024-09-04[3.11] gh-100117: Fix inaccuracy in documentation of the CodeObject's ↵Miss Islington (bot)-1/+1
co_positions field. (GH-119364) (#119871) (cherry picked from commit 015b1fdd0ae03f94a5dfda051b020810d1c952dd) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-09-04[3.11] gh-121650: Encode newlines in headers, and verify headers are sound ↵Łukasz Langa-0/+38
(GH-122233) (#122608) Per RFC 2047: > [...] these encoding schemes allow the > encoding of arbitrary octet values, mail readers that implement this > decoding should also ensure that display of the decoded data on the > recipient's terminal will not cause unwanted side-effects It seems that the "quoted-word" scheme is a valid way to include a newline character in a header value, just like we already allow undecodable bytes or control characters. They do need to be properly quoted when serialized to text, though. Verify that email headers are well-formed. This should fail for custom fold() implementations that aren't careful about newlines. (cherry picked from commit 097633981879b3c9de9a1dd120d3aa585ecc2384) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Bas Bloemsaat <bas@bloemsaat.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-08-09[3.11] gh-114539: Clarify implicit launching of shells by subprocess ↵Miss Islington (bot)-2/+10
(GH-117996) (#118003) Co-authored-by: Steve Dower <steve.dower@python.org>
2024-07-22[3.11] gh-121957: Emit audit events for python -i and python -m asyncio ↵Łukasz Langa-1/+13
(GH-122118)
2024-06-17[3.11] gh-112346: Document the OS byte in `gzip.compress` output change in ↵Miss Islington (bot)-1/+18
3.11 (GH-120480) (#120614)
2024-05-24[3.11] gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488) (GH-118739)Steve Dower-0/+19
2024-04-25[3.11] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges ↵Petr Viktorin-4/+48
(GH-113179) (GH-113186) (GH-118177) (#118227)
2024-04-01[3.11] Docs: specify XML document name in xml.etree.elementtree example ↵Miss Islington (bot)-1/+1
(GH-24223) (#117430) (cherry picked from commit 9dae05ee59eeba0e67af2a46f2a2907c9f8d7e4a) Co-authored-by: Moshe Kaplan <mosheekaplan@gmail.com>
2024-04-01[3.11] Docs: add more links to PIPE in subprocess docs (GH-25416) (#117428)Miss Islington (bot)-5/+8
(cherry picked from commit fc2071687b708598264a3403b7f9104667c1092f) Co-authored-by: Matthew Davis <7035647+mdavis-xyz@users.noreply.github.com>
2024-03-26[3.11] Change links on the index page (GH-117230) (#117269)Miss Islington (bot)-2/+2
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2024-03-25[3.11] Add information about negative indexes to sequence datamodel doc ↵Miss Islington (bot)-3/+6
(GH-110903) (#117239) Co-authored by Terry Jan Reedy (cherry picked from commit c2276176d543a2fc2d57709c2787f99850fbb073) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2024-03-24[3.11] GH-115986 Docs: promote pprint.pp usage as a default (GH-116614) ↵Miss Islington (bot)-15/+18
(#117197) Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-24[3.11] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117192)Miss Islington (bot)-1/+1
Co-authored-by: LilKS <1244886+LilKS@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-03-23[3.11] [docs] Fix typo in docstring and add example to logging cookbook. ↵Miss Islington (bot)-14/+126
(GH-117157) (GH-117158) (cherry picked from commit 00baaa21de229a6db80ff2b84c2fd6ad1999a24c)
2024-03-22[3.11] docs: fix over-linking in dataclasses.rst (GH-117005) (#117164)Carol Willing-78/+85
* docs: fix over-linking in dataclasses.rst (#117005) (cherry picked from commit 0907871d43bffb613cbd560224e1a9db13d06c06) * [3.11] docs: fix over-linking in dataclasses.rst (GH-117005) (cherry picked from commit 0907871d43bffb613cbd560224e1a9db13d06c06) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> --------- Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2024-03-22[3.11] gh-75988: Fix issues with autospec ignoring wrapped object ↵infohash-0/+120
(GH-115223) (#117124) gh-75988: Fix issues with autospec ignoring wrapped object (#115223) * set default return value of functional types as _mock_return_value * added test of wrapping child attributes * added backward compatibility with explicit return * added docs on the order of precedence * added test to check default return_value (cherry picked from commit 735fc2cbbcf875c359021b5b2af7f4c29f4cf66d)
2024-03-20[3.11] Fix sort order for "locale encoding" glossary item (GH-115794) (#117103)Miss Islington (bot)-12/+12
Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2024-03-20[3.11] gh-117058: Update GUI and packaging recommendations for macOS. ↵Miss Islington (bot)-11/+25
(GH-117059) (#117082) Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2024-03-19[3.11] docs: announce venv creation before installing packages (GH-117036) ↵Miss Islington (bot)-0/+1
(#117039) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2024-03-19[3.11] gh-101100: Fix Sphinx warnings in `library/pydoc.rst` (GH-116913) ↵Miss Islington (bot)-8/+7
(#117038) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-19[3.11] Update titles and subtitles on landing page template (GH-116914) ↵Miss Islington (bot)-31/+31
(#117019) Update titles and subtitles on landing page template (GH-116914) * Update titles and subtitles on landing page template * address review from gvanrossum * Edits from hugovk review * Change word order back. Down the road we should split license and history (cherry picked from commit c514a975abe35fa4604cd3541e2286168ef67d10) Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2024-03-19[3.11] gh-107607: Update comment about utf-8 BOM being ignored (GH-107858) ↵Miss Islington (bot)-4/+3
(#117015) (cherry picked from commit 7f64ae30ddc22577ce4101ce0b6601b3548b036f) Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
2024-03-18[3.11] gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) ↵Miss Islington (bot)-1/+1
(#116952) In Lexical Analysis f-strings section, NULL in the description of 'literal character' means '\0'. In the format_spec grammar production, it is wrong with that meaning and redundant if instead interpreted as <nothing>. Remove it there. (cherry picked from commit 4e45c6c54a9457b1ca5b4cf3aa2843b7218d4414) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-03-16[3.11] gh-116851: Remove "from ctypes import *" from a ctypes example ↵Miss Islington (bot)-1/+0
(GH-116852) (GH-116906) It is confusing, because libc is not imported from ctypes, but defined in previous examples, which already contain the import. (cherry picked from commit 744c0777952f1e535d1192ee15b286aa67b61533) Co-authored-by: jnchen <caojingchen@live.com>
2024-03-15[3.11] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) ↵Miss Islington (bot)-1/+2
(#116855) gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) (cherry picked from commit a50cf6c3d76b34e2ee9f92a248f1b0df24e407f6) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2024-03-13[3.11] gh-98731: Improvements to the logging documentation (GH-101618) ↵Miss Islington (bot)-161/+107
(GH-116733) (cherry picked from commit 7f418fb111dec325b5c9fe6f6e96076049322f02)
2024-03-13[3.11] [doc]: Update cookbook recipe for Qt6. (GH-116719) (GH-116728)Miss Islington (bot)-13/+36
(cherry picked from commit 186af3cf21705badec086ec16f231ac390747d3b)
2024-03-13[3.11] gh-90300: Fix cmdline.rst (GH-116721) (GH-116725)Miss Islington (bot)-5/+8
* Fix the description of the "-b" option. * Add references to environment variables for "-s" and "-X dev" options. (cherry picked from commit 33662d4e01d73cd4f29a25efc2ef09288129023f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-03-13[3.11] gh-111307: Update design FAQ 'switch' entry (GH-115899) (#116704)Miss Islington (bot)-3/+8
(cherry picked from commit 43986f55671ba2f7b08f8c5cea69aa136a093697) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-03-12[3.11] Docs: fix broken links (GH-116651) (#116701)Mariusz Felisiak-3/+3
(cherry picked from commit 3f1b6efee95c06f8912bcea4031afacdbc0d5684)
2024-03-12[3.11] Add `typing.NamedTuple` in glossary section for named tuples ↵Miss Islington (bot)-4/+5
(GH-108327) (#116690) (cherry picked from commit 149f7f7ae28944579792d22607532006977177c9) Co-authored-by: Tushar Sadhwani <tushar.sadhwani000@gmail.com>
2024-03-11[3.11] gh-116563: Update tutorial error example (GH-116569) (#116625)Miss Islington (bot)-4/+4
There now may be multiple carets pointing at a token rather than just a character. Fix the sentence about possible causes. (cherry picked from commit 3e45030076bf2cfab41c4456c73fb212b7322c60) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-03-09[3.11] gh-116535: Fix distracting "TypeError" in example code (gh-116538) ↵Miss Islington (bot)-2/+2
(gh-116552) gh-116535: Fix distracting "TypeError" in example code (gh-116538) (cherry picked from commit db8f423f58e336eb6180a70d9886b443d7203c2c) Co-authored-by: Declan <5962877+dec1@users.noreply.github.com>
2024-03-09[3.11] GH-116218 Docs: Add availability information for the 'resource' ↵Miss Islington (bot)-0/+2
module (GH-116256) (#116534) GH-116218 Docs: Add availability information for the 'resource' module (GH-116256) Add availability data to 'resource' module Docs (cherry picked from commit 03f86b1b626ac5b0df1cc74d8f80ea11117aec8c) Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
2024-03-08[3.11] gh-105535 Document potential performance trap during enum creation ↵Miss Islington (bot)-0/+7
(GH-107119) (GH-116512) (cherry picked from commit 601f3a7b3391e9d219a8ec44a6c56d00ce584d2a) Co-authored-by: Nicolas A. Oyarzabal <79150521+nicky-eng@users.noreply.github.com> Co-authored-by: Ethan Furman <ethan@stoneleaf.us> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-07[3.11] gh-115664: Fix ordering of more versionadded and versionchanged ↵Serhiy Storchaka-80/+59
directives (GH-116298) (GH-116450) (GH-116452) (cherry picked from commit 1e75fe146857b5e6624bd3281675cf20cc356273) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 808a77612fb89b125d25efac2788522a100e8a6d)
2024-03-06[3.11] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) ↵Sebastian Pipping-0/+75
(GH-115623) (#116268) Allow controlling Expat >=2.6.0 reparse deferral (CVE-2023-52425) by adding five new methods: - `xml.etree.ElementTree.XMLParser.flush` - `xml.etree.ElementTree.XMLPullParser.flush` - `xml.parsers.expat.xmlparser.GetReparseDeferralEnabled` - `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled` - `xml.sax.expatreader.ExpatParser.flush` Based on the "flush" idea from #115138 (comment) . - Please treat as a security fix related to CVE-2023-52425. (cherry picked from commit 6a95676) (cherry picked from commit 73807eb) (cherry picked from commit eda2963) --------- Includes code suggested-by: Snild Dolkow <snild@sony.com> and by core dev Serhiy Storchaka. Co-authored-by: Gregory P. Smith <greg@krypto.org>
2024-03-05[3.11] gh-115986: Fix inaccuracies in pprint docs (GH-116104) (#116383)Miss Islington (bot)-2/+2
Amend wording after gh-116019 was merged. (cherry picked from commit e205c5cd8f1a49d0ef126123312ee8a40d1416b6) Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
2024-03-05[3.11] chore: fix typos (GH-116345) (#116375)Terry Jan Reedy-1/+1
Co-authored-by: cui fliter <imcusg@gmail.com> (cherry picked from commit e7ba6e9dbe5433b4a0bcb0658da6a68197c28630)
2024-03-05[3.11] Fix the PyGetSetDef documentation (GH-116056) (GH-116368)Serhiy Storchaka-3/+3
(cherry picked from commit df594011089a83d151ac7000954665536f3461b5)
2024-03-05[3.11] gh-115777: Fix double versionadded directives (GH-116269) (GH-116362)Miss Islington (bot)-24/+8
(cherry picked from commit 0064dfa0919cc93257c351a609f99461f6e4e3ac) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-03-04[3.11] Docs: update using/configure.rst (GH-116274) (#116277)Hugo van Kemenade-3/+11
2024-03-04[3.11] GH-116271 Docs: provide clarification for object assignments in the ↵Miss Islington (bot)-7/+24
Tutorial section (GH-116283) (#116306) Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com> Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>