Commit graph

14178 commits

Author SHA1 Message Date
morotti
e24c66d55a
gh-91349: Adjust default compression level to 6 (down from 9) in gzip and tarfile (GH-131470)
gh-91349: Adjust default compression level to 6 (down from 9) in gzip and tarfile

It is the default level used by most compression tools and a
better tradeoff between speed and performance.

Co-authored-by: rmorotti <romain.morotti@man.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2025-07-20 09:43:40 -07:00
Alexander Urieles
958657bbc3
gh-131724: Add a new max_response_headers param to HTTP/HTTPSConnection (GH-136814)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-07-20 13:53:54 +00:00
Dominic H.
cc81b4e501
gh-86608: Improve and restructure tarfile examples (#121771)
Add an example on how to write a tarfile to stdout; general improvements.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-07-20 12:19:47 +00:00
Hugo van Kemenade
dda9d0011f
gh-108362: Retarget incremental GC changes to 3.14 (#125453) 2025-07-20 12:56:55 +03:00
sobolevn
67036f1ee1
gh-133875: Remove deprecated pathlib.PurePath.is_reserved (#133876) 2025-07-19 17:07:46 +00:00
Matthieu Lienart
6293d8a1a6
gh-136752: Clarify documentation for `IPv{N}Address.is_reserved` (#136794)
Co-authored-by: Matthieu Lienart <matthieu.lienart@axians.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-07-19 14:43:56 +00:00
Valerio Gianella
57acd65a30
gh-135468: Improve `BaseHandler.http_error_default()` parameter descriptions (#136797)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-07-19 15:43:00 +01:00
jdunter
8ffc3ef01e
gh-54732: Make argparse error caused by empty rows in option files explicit (#136795)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-07-19 14:08:19 +00:00
aggshruti99
f575588ccf
gh-135730: Clarify multiprocessing.Queue close() documentation (#136803)
Add a copy of the text from SimpleQueue.close()

---------

Co-authored-by: saggarwal145 <saggarwal145@bloomberg.net>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-07-19 14:24:39 +02:00
nacind
eb8ac4c857
gh-122450: Indicate that Fraction denominators are always positive (#136789) 2025-07-19 13:26:50 +02:00
Sina Zel taat
acefb978dc
gh-136769: Include fixed-width integers in the fundamental data types table (#136784)
Fixed-sized types, like ``c_int32``, are currently missing from the fundamental data types table
in the ``ctypes`` documentation. This commit adds them, and  notes that ``c_[u]int8`` is an alias
of ``c_[u]byte``.
2025-07-19 11:19:41 +01:00
Gergely Elias
263e451c41
gh-74598: document that fnmatch.filterfalse is affected by cache limitation (#136781) 2025-07-19 09:51:11 +00:00
RafaelWO
3eecc72ac7
Docs: Improve example for `itertools.batched()` (#136775)
The current example `batched('ABCDEFG', n=3) → ABC DEF G` can confuse readers because both, the size of the tuples and the number of tuples are 3.
By using a batch size of n=2, it is clearer that the `n` argument refers to the size of the resulting tuples.
I.e. the new example is: `batched('ABCDEFG', n=2) → AB CD EF G`
2025-07-19 10:29:44 +01:00
Tian Gao
28937d3a21
gh-136697: Use the standard audit event format for sys.monitoring docs (#136747) 2025-07-17 11:10:10 -07:00
Bartosz Sławecki
69d8fe50dd
gh-126548: Add a thread-unsafety warning for importlib.reload() (GH-136704) 2025-07-16 12:34:14 -04:00
Facundo Batista
8e2f4b4483
Improved venv docs to indicate that isolation is the default. (#136698)
* Improved venv docs to note that isolation is the default.

* Insert "that" so that a sentence reads better.

* Improved wording.

---------

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
2025-07-16 08:55:31 -03:00
William Andrea
e89923d366
fix grammar typo in logging.rst (#136584) 2025-07-16 12:31:26 +05:30
Serhiy Storchaka
7689407fa4
Fix index entry and anchor for module.__test__ (GH-136674)
It was "doctest.module attribute". Now it is "module attribute".
2025-07-15 18:52:51 +03:00
Ran Benita
7e10a103df
gh-136682: Remove incorrect statement that os.path.samestat accepts file-like objects (#136683) 2025-07-15 14:49:11 +02:00
Bénédikt Tran
a02cf19dee
gh-72570: mention the incompatibility of XOFs with HMAC (#136676) 2025-07-15 14:03:21 +02:00
Adam Turner
c89a66feb1
GH-133711: Enable UTF-8 mode by default (PEP 686) (#133712)
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-07-15 10:45:41 +01:00
Alper
9363703bd3
gh-116738: Make grp module thread-safe (#135434)
Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available.
---------

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-07-14 11:18:41 -07:00
Hugo van Kemenade
5bbf30e89e
Partially revert "gh-101100: Fix sphinx warnings in library/email.parser.rst (#136475)" (#136629) 2025-07-14 12:13:15 +03:00
Stan Ulbrych
a93d9aaf62
gh-42237: Link to complete list of codec aliases (#136625)
Closes #42237
2025-07-13 13:12:46 +00:00
Yongzi Li
609d5adc7c
gh-134833: improve docs for del s[i:j] in Mutable Sequence Types (#134834) 2025-07-13 11:26:31 +05:30
Stan Ulbrych
42b251bceb
gh-134939: Correct concurrent.interpreters source code link (#136564) 2025-07-13 11:05:57 +05:30
Weilin Du
47b01da4cc
gh-101100: Fix sphinx warnings in Doc/library/platform.rst (GH-136562) 2025-07-12 21:15:04 +03:00
Illia Volochii
5a20e79725
gh-99813: Start using SSL_sendfile when available (#99907)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-07-12 12:42:35 +00:00
Furkan Onder
dda70fa771
gh-99631: Add custom loads and dumps support for the shelve module (#118065)
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-07-12 14:27:32 +02:00
Bénédikt Tran
2301cdb559
gh-135853: add math.fmax and math.fmin (#135888) 2025-07-12 11:31:10 +00:00
Weilin Du
252e2f710e
gh-101100: Fix sphinx warnings in Doc/library/functools.rst (GH-136424)
Add index entries and anchors for cache_info, cache_clear and register.
2025-07-11 20:03:13 +03:00
Stan Ulbrych
975b57d945
gh-76637: Note that undefined Codec is for testing (#136531)
Closes #76637
2025-07-11 12:50:21 +02:00
Weilin Du
515b3d18ed
gh-101100: Fix sphinx warnings in library/email.parser.rst (#136475) 2025-07-11 12:37:01 +03:00
László Kiss Kollár
59acdba820
gh-135953: Implement sampling tool under profile.sample (#135998)
Implement a statistical sampling profiler that can profile external
Python processes by PID. Uses the _remote_debugging module and converts
the results to pstats-compatible format for analysis.


Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
2025-07-10 18:44:24 +01:00
Stan Ulbrych
4b41b2043b
gh-82663: Clarify codecs.iterdecode/encode docs (#136497)
Closes #82663
2025-07-10 17:31:08 +02:00
Victor Stinner
9c4d287775
gh-102740: Clarify time.monotonic() "system-wide" in the doc (#136431) 2025-07-10 01:06:48 +02:00
Oskar Roesler
591abcc01f
gh-81520: Document unexpected os.path.ismount behaviour with btrfs subvolumes (GH-136058) 2025-07-09 11:54:58 -04:00
NekrodNIK
6a6cd3c07c
gh-131825: Fix sqlite3 timezone-naive adapter recipe (GH-136270) 2025-07-09 10:06:42 -04:00
Geoffrey Thomas
3c43df4dbd
Docs: unittest.enterModuleContext is not a classmethod (#136464) 2025-07-09 14:52:39 +01:00
Stan Ulbrych
f1dcf3c7bf
gh-53243: Document codecs.readbuffer_encode() (#136284)
Closes #53243
2025-07-09 09:39:55 +02:00
Stan Ulbrych
ffd7f2f231
gh-136162: Document encodings package functions (#136164)
Closes #136162.
2025-07-08 23:34:48 +02:00
Yuki Kobayashi
0152df5fff
gh-101100: Fix sphinx warnings in Doc/library/exceptions.rst (#136309)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-07-08 15:05:05 +03:00
Weilin Du
0b62523959
gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (#136323) 2025-07-07 19:28:44 +03:00
Anthony Sottile
11f074b243
gh-86682: Add versionadded for sys._getframemodulename (#136325)
add versionadded for sys._getframemodulename
2025-07-07 16:52:04 +05:30
sobolevn
0a33221594
gh-101100: Fix sphinx warnings in whatsnew/3.9 (#136163) 2025-07-07 13:41:11 +03:00
Petr Viktorin
2468aafe98
gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980)
* Turn the __future__ table to list-table.
  This'll make it easier to add entries that need longer markup
* Semantic markup for __future__ feature descriptions.
* Document CO_* C macros.
2025-07-07 12:31:13 +02:00
Victor Stinner
cb99d99277
gh-127502: Remove XML vulnerability table (GH-135294)
* Remove the table
* Replace warnings with notes


Latest releases of Python 3.9-3.15 include expat 2.7.1 which is not vulnerable.

expat 2.6.0 was released in February 2024.
2025-07-07 11:03:07 +02:00
AN Long
77a8bd29da
gh-109070: Document that get_context in multiprocessing have side effect (#136341)
Document that get_context in multiprocessing have side effect
2025-07-06 11:26:26 -07:00
W. H. Wang
1953713d0d
gh-136032: Fix argparse.BooleanOptionalAction doc (#136133) 2025-07-05 15:54:26 -07:00
Weilin Du
f0c7344a8f
gh-101100: Fix references in http.cookiejar docs (GH-136238) 2025-07-05 09:29:02 -04:00