summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-111726: Explicitly close database connections in sqlite3 doctests ↵Miss Islington (bot)2024-04-081-0/+27
| | | | | | | | (GH-111730) (#117630) (cherry picked from commit a7702663e3f7efc81f0b547f1f13ba64c4e5addc) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Fix reference in code.rs (#117615) (#117628)Alex Waygood2024-04-081-1/+1
| | | | | Co-authored-by: Anita Hammer <166057949+anitahammer@users.noreply.github.com> Fix reference in code.rst (#117615)
* [3.12] gh-111726: Remove some doctests from sqlite3 docs (GH-117623) (#117625)Miss Islington (bot)2024-04-081-36/+7
| | | | | | | | | * remove load extension doctest since we cannot skip it conditionally * remove sys.unraisablehook example; using unraisable hooks is not "an improved debug experience" (cherry picked from commit e338e1a4ec5e43a02447f4ec80320d7fc12b3ed4) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-111726: Cleanup test files after running sqlite3 doctest ↵Miss Islington (bot)2024-04-081-0/+8
| | | | | | | | | (GH-117604) (#117622) Remove all temporary databases in a dedicated 'testcleanup' step at the end of the file. (cherry picked from commit a453f5ef9d0b89bd00488d3814c6f0a2886342b8) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol ↵Miss Islington (bot)2024-04-051-2/+24
| | | | | | | | (GH-117113) (GH-117571) gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol (GH-117113) (cherry picked from commit e569f9132b5bdc1c103116a020e19e3ccc20cf34) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] [doc] Update logging documentation to improve grammar and elucidate ↵Miss Islington (bot)2024-04-041-7/+8
| | | | | an example. (GH-117541) (GH-117542) (cherry picked from commit df912c913a3d94995b379f1e19fe0a79acab6169)
* [3.12] Link to the Python type system specification (GH-117400) (#117448)Miss Islington (bot)2024-04-021-73/+15
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] Docs: specify XML document name in xml.etree.elementtree example ↵Miss Islington (bot)2024-04-011-1/+1
| | | | | | | (GH-24223) (#117429) (cherry picked from commit 9dae05ee59eeba0e67af2a46f2a2907c9f8d7e4a) Co-authored-by: Moshe Kaplan <mosheekaplan@gmail.com>
* [3.12] Docs: add more links to PIPE in subprocess docs (GH-25416) (#117427)Miss Islington (bot)2024-04-011-5/+8
| | | | | (cherry picked from commit fc2071687b708598264a3403b7f9104667c1092f) Co-authored-by: Matthew Davis <7035647+mdavis-xyz@users.noreply.github.com>
* [3.12] gh-117339: Use NULL instead of None for LOAD_SUPER_ATTR in dis docs ↵Christopher Chianelli2024-03-281-1/+1
| | | | (GH-117343) (GH-117345)
* [3.12] Sync main docs and docstring for median_grouped(). (gh-117214) ↵Miss Islington (bot)2024-03-251-38/+39
| | | | (gh-117241)
* [3.12] Minor markup and grammar fixes in the statistics docs (gh-117216) ↵Miss Islington (bot)2024-03-251-3/+3
| | | | (gh-117218)
* [3.12] GH-115986 Docs: promote pprint.pp usage as a default (GH-116614) ↵Miss Islington (bot)2024-03-241-15/+18
| | | | | | | (#117196) Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117191)Miss Islington (bot)2024-03-241-1/+1
| | | | | Co-authored-by: LilKS <1244886+LilKS@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] docs:fix over-linking in dataclasses.rst (GH-117005) (#117163)Carol Willing2024-03-221-79/+81
| | | | | | | | | | | | | | * docs: fix over-linking in dataclasses.rst (#117005) (cherry picked from commit 0907871d43bffb613cbd560224e1a9db13d06c06) * [3.12] 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>
* [3.12] gh-75988: Fix issues with autospec ignoring wrapped object ↵infohash2024-03-221-0/+120
| | | | | | | | | | | | | | | | | (GH-115223) (#117119) 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)
* [3.12] gh-101100: Fix Sphinx warnings in `library/pydoc.rst` (GH-116913) ↵Miss Islington (bot)2024-03-191-7/+7
| | | | | | (#117037) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-116851: Remove "from ctypes import *" from a ctypes example ↵Miss Islington (bot)2024-03-161-1/+0
| | | | | | | | | (GH-116852) (GH-116905) 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>
* [3.12] gh-116782: Mention `__type_params__` in `inspect.getmembers` docs ↵Miss Islington (bot)2024-03-151-0/+10
| | | | | | | | | (GH-116783) (#116870) gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783) (cherry picked from commit 16349868d396cc1bff5188de3638321e87fe0293) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) ↵Miss Islington (bot)2024-03-151-1/+2
| | | | | | | | (#116854) gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) (cherry picked from commit a50cf6c3d76b34e2ee9f92a248f1b0df24e407f6) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-116842: Improve test comment and fix a doctest (gh-116846) (gh-116847)Miss Islington (bot)2024-03-151-2/+2
|
* [3.12] Minor improvements to the itertools documentation (gh-116833) (gh-116838)Raymond Hettinger2024-03-151-84/+94
|
* [3.12] Better presentation order for recipes. (gh-116755) (gh-116757)Miss Islington (bot)2024-03-131-43/+43
|
* [3.12] gh-98731: Improvements to the logging documentation (GH-101618) ↵Miss Islington (bot)2024-03-131-85/+67
| | | | | (GH-116734) (cherry picked from commit 7f418fb111dec325b5c9fe6f6e96076049322f02)
* [3.12] Modernize roundrobin() recipe and improve variable names (gh-116710) ↵Miss Islington (bot)2024-03-131-17/+14
| | | | (gh-116711)
* [3.12] Docs: fix broken links (GH-116651) (#116700)Miss Islington (bot)2024-03-133-3/+3
| | | | | | (cherry picked from commit 3f1b6efee95c06f8912bcea4031afacdbc0d5684) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [3.12] Minor clarity improvement for the iter_index() recipe. Also add value ↵Miss Islington (bot)2024-03-131-4/+21
| | | | subsequence tests. (gh-116696) (gh-116698)
* [3.12] Beef-up tests for the itertool docs. (gh-116679) (gh-116688)Miss Islington (bot)2024-03-121-9/+103
|
* [3.12] gh-116535: Fix distracting "TypeError" in example code (gh-116538) ↵Miss Islington (bot)2024-03-091-2/+2
| | | | | | | | (gh-116551) 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>
* [3.12] GH-116218 Docs: Add availability information for the 'resource' ↵Miss Islington (bot)2024-03-091-0/+2
| | | | | | | | | | module (GH-116256) (#116533) 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>
* [3.12] gh-105535 Document potential performance trap during enum creation ↵Miss Islington (bot)2024-03-091-0/+7
| | | | | | | | | (GH-107119) (GH116511) (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>
* [3.12] gh-115664: Fix ordering of more versionadded and versionchanged ↵Serhiy Storchaka2024-03-0714-54/+38
| | | | | directives (GH-116298) (GH-116450) (cherry picked from commit 808a77612fb89b125d25efac2788522a100e8a6d)
* [3.12] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) ↵Sebastian Pipping2024-03-062-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | (GH-115623) (GH-116248) 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 https://github.com/python/cpython/pull/115138#issuecomment-1932444270 . - Please treat as a security fix related to CVE-2023-52425. (cherry picked from commit 6a95676bb526261434dd068d6c49927c44d24a9b) (cherry picked from commit 73807eb634315f70a464a18feaae33d9e065de09) (cherry picked from commit eda2963378a3c292cf6bb202bb00e94e46ee6d90) --------- Includes code suggested-by: Snild Dolkow <snild@sony.com> and by core dev Serhiy Storchaka. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-115986: Fix inaccuracies in pprint docs (GH-116104) (#116382)Miss Islington (bot)2024-03-051-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>
* [3.12] chore: fix typos (#116345) (#116370)Terry Jan Reedy2024-03-051-1/+1
| | | | Co-authored-by: cui fliter <imcusg@gmail.com> (cherry picked from commit e7ba6e9dbe5433b4a0bcb0658da6a68197c28630)
* [3.12] gh-115777: Fix double versionadded directives (GH-116269) (GH-116361)Miss Islington (bot)2024-03-056-24/+8
| | | | | (cherry picked from commit 0064dfa0919cc93257c351a609f99461f6e4e3ac) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Consistently spell out *predicate* instead of *pred*. (gh-116308) ↵Miss Islington (bot)2024-03-041-23/+16
| | | | (gh-116312)
* gh-104711: Add security warning to the CGIHTTPRequestHandler document ↵AN Long2024-03-041-0/+6
| | | | | (GH-115915) (cherry picked from commit dac8ff4c401f75e65a5eef1514f2d7987e63bbfe)
* [3.12] gh-116281: Remove wrong '\' from '\*' in some doc signatures ↵Miss Islington (bot)2024-03-033-6/+6
| | | | | | | | (GH-116282) (#116285) gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282) (cherry picked from commit 4859ecb8609b51e2f6b8fb1b295e9ee0f83e1be6) Co-authored-by: HarryLHW <123lhw321@gmail.com>
* [3.12] gh-116035: Document that both tzinfo and fold are ignored in ↵Miss Islington (bot)2024-03-011-2/+8
| | | | | | | | comparisons if tzinfo is the same (GH-116187) (GH-116216) This mostly restores information removed in c12240ed28aac6494750e00143bc550c4d6d8ad1 (GH-114749). (cherry picked from commit 05b04903a14279421ecdc6522b8202822de6ebb5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-115811: Update documentation to add some Logger attributes. ↵Miss Islington (bot)2024-03-011-0/+36
| | | | | (GH-116109) (GH-116185) (cherry picked from commit 3b6f4cadf19e6a4edd2cbbbc96a0a4024b395648)
* [3.12] gh-115881: Document feature_version limitations (#115980) (#116173)Shantanu2024-03-011-6/+9
|
* [3.12] Fix rendering of null character in ast.rst (GH-116080) (#116160)Miss Islington (bot)2024-02-291-1/+1
| | | | | | Fix rendering of null character in ast.rst (GH-116080) (cherry picked from commit c04a981ff414b101736688773dbe24f824ca32ce) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-73580: Docs for tunnelling TLS through TLS (GH-22539) (GH-116149)Miss Islington (bot)2024-02-291-0/+3
| | | | | (cherry picked from commit 91c3c64237f56bde9d1c1b8127fdcb02a112b5a4) Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
* [3.12] Docs: mark up NotImplemented using the :data: role throughout the ↵Miss Islington (bot)2024-02-298-23/+23
| | | | | | | docs (GH-116135) (#116147) (cherry picked from commit dbe44f150cd161bd327ed662e527a4c93829fb3e) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Make the iter_except() recipe more compact. (gh-116132) (gh0116133)Miss Islington (bot)2024-02-291-20/+1
|
* [3.12] gh-115937: Remove implementation details from inspect.signature() ↵Miss Islington (bot)2024-02-291-3/+7
| | | | | | | | | | | docs (GH-116086) (#116106) gh-115937: Remove implementation details from inspect.signature() docs (GH-116086) (cherry picked from commit fb2e17b642fc3089e4f98e4bf6b09dd362e6b27d) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.12] Update an out-of-date example in the itertools recipe intro ↵Miss Islington (bot)2024-02-281-1/+1
| | | | (gh-116082) (gh-116084)
* [3.12] gh-115821: [Enum] better error message for calling super().__new__() ↵Ethan Furman2024-02-281-0/+3
| | | | | (GH-116065) Add note to not call super().__new__() in docs.
* [3.12] Improve all_equal() recipe (gh-116081) (gh-116083)Miss Islington (bot)2024-02-281-3/+4
|