Marat Khagazheev
115a04b802
gh-138997: Remove false justify fill option from Tkinter docs ( #139023 )
...
Co-authored-by: marat <khagazheev@artlebedev.ru>
2025-10-18 23:45:52 -04:00
Parham MohammadAlizadeh
920de7ccdc
gh-128571: Document UTF-16/32 native byte order ( #139974 )
...
Closes #128571
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-18 20:47:04 +02:00
Serhiy Storchaka
78e1d65a4d
gh-140241: Fix documentation for the registry parameter of warnings.warn_explicit() (GH-140242)
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-10-18 13:55:26 +03:00
Tan Long
2ebd0cdb16
Remove duplicate words in the documentation ( #140221 )
2025-10-16 18:27:00 +01:00
wangxiaolei
5f357f3b0d
gh-140078: fix typo in tkinter docs ( #140081 )
...
Remove extraneous word.
2025-10-16 11:02:38 -04:00
Jeffrey Bosboom
5a31024da4
gh-83714: Check for struct statx.stx_atomic_write_unit_max_opt in configure ( #140185 )
...
stx_atomic_write_unit_max_opt was added in Linux 6.16, but is controlled
by the STATX_WRITE_ATOMIC mask bit added in Linux 6.11. That's safe at
runtime because all kernels clear the reserved space in struct statx and
zero is a valid value for stx_atomic_write_unit_max_opt, and it avoids
allocating another mask bit, which are a limited resource. But it also
means the kernel headers don't provide a way to check whether
stx_atomic_write_unit_max_opt exists, so add a configure check.
2025-10-16 13:40:47 +02:00
Alex Waygood
65d1a14d59
gh-139817: typing docs: Fix indentation of .. versionadded:: note for TypeAliasType.__qualname__ ( #140177 )
2025-10-15 20:18:39 +00:00
Mikhail Efimov
f673f0e7b4
gh-139817: Attribute __qualname__ is added to TypeAliasType ( #139919 )
2025-10-15 09:08:17 -07:00
Jeffrey Bosboom
fe9ac7fc8c
gh-83714: Implement os.statx() function ( #139178 )
...
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-15 13:44:08 +00:00
Stan Ulbrych
2ca3c85054
Update documented minimum required zlib library version ( #140116 )
2025-10-15 00:16:00 +02:00
Hugo van Kemenade
348a26ff0e
Merge branch 'main' of https://github.com/python/cpython
2025-10-14 17:41:22 +03:00
Adorilson Bezerra
07e617ecc2
gh-106318: Add examples for str.istitle() ( #140046 )
2025-10-14 17:19:27 +03:00
Hugo van Kemenade
aeff92d86a
Python 3.15.0a1
2025-10-14 13:46:08 +03:00
Sebastian Pipping
0c17473513
gh-90949: Recommend hasattr with Expat security methods ( #139800 )
2025-10-14 13:18:09 +03:00
Stan Ulbrych
e6102f0755
gh-82575: Adjust time.get_clock_info *adjustable* attribute doc ( #135920 )
2025-10-14 11:30:56 +03:00
Aziz
025b4034d6
gh-137871: Clarify cmath.nan documentation by linking to math module ( #137876 )
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-10-14 11:24:43 +03:00
Loïc Simon
7caa591bb9
gh-102247: Improve documentation of http.HTTPStatus members update ( #133190 )
2025-10-14 11:18:17 +03:00
Weilin Du
6ca91834b8
gh-101100: Fix sphinx warnings in library/smtplib.rst ( #139991 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-14 11:12:24 +03:00
Serhiy Storchaka
525dcfe523
gh-138772: Fix and improve documentation for turtle color functions (GH-139325)
...
Use multiple signatures for clarity.
Explain different forms of bgcolor() in details.
Fix outdated docstrings.
2025-10-13 18:32:16 +03:00
Bartosz Sławecki
68622be935
gh-139155: Remove "dictionaries are sorted by key" note in pprint docs (GH-139159)
2025-10-12 12:48:22 -04:00
sobolevn
d6dd64ac65
gh-138044: Fix importlib.resources.files deprecation docs ( #139632 )
2025-10-12 01:52:01 +03:00
Weilin Du
447c7a89fb
gh-101100: Fix Sphinx warnings in Doc/library/signal.rst (GH-139930)
2025-10-11 14:26:48 -04:00
Stan Ulbrych
c7f1da97eb
gh-101100: Document zlib public constants to fix reference warnings ( #139835 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-10 15:32:44 +00:00
Weilin Du
302f19d1f1
gh-139843: Document signals (SIGSTOP, SIGVTALRM, SIGPROF) to fix sphinx references (GH-139896)
2025-10-10 11:28:38 -04:00
Nadeshiko Manju
7cafd76a7f
gh-139184: Set O_CLOEXEC for master_fd when calling os.forkpty() ( #139408 )
...
Signed-off-by: Manjusaka <me@manjusaka.me>
Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-10 10:56:10 +02:00
Weilin Du
1f87d528a1
gh-139843: Document signal.SIGQUIT to fix Sphinx references ( #139844 )
2025-10-10 08:24:41 +02:00
partev
33f32d6740
Replace obsolete platforms with more recent examples ( #132455 )
...
Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
2025-10-10 05:38:13 +00:00
Timothée Mazzucotelli
f575dd9ef8
gh-139842: Clarify __module__ description in typing.rst ( #139863 )
2025-10-09 18:53:42 +01:00
Kirill Podoprigora
04461510fb
gh-139672: Remove references to passlib ( #139673 )
2025-10-09 20:13:38 +03:00
Bénédikt Tran
197c610a1e
gh-88046: remove impossible conditional import for _ssl.RAND_egd ( #139648 )
...
`_ssl.RAND_egd` was removed in b8d0fa035d .
2025-10-09 11:14:36 +02:00
Cody Maloney
fa60354245
gh-101100: Resolve some os sphinx reference warnings ( #139636 )
2025-10-08 23:53:27 +05:30
Stan Ulbrych
99fd525632
gh-101100: Fix all Sphinx warnings in Doc/library/subprocess.rst ( #139576 )
2025-10-08 18:26:22 +03:00
Cody Maloney
8b9606a2c5
gh-139452: Clarify redirect_stdout, stderr behavior (gh-139490)
2025-10-08 08:28:29 -05:00
Adam Turner
3195da0b1a
gh-105812: Use the `:deco:` role in place of manual decorator markup ( #139619 )
2025-10-05 21:15:36 +01:00
George Ogden
dadbb2662a
Replace ambiguous word "pound" by "hash" in difflib docs ( #139601 )
2025-10-05 17:10:24 +00:00
Dave Peck
880c9526f9
gh-138558: Improve description of `Interpolation.expression` ( #139187 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-10-04 22:06:56 +01:00
Kumar Aditya
0b2168275e
gh-138703: clarify data buffer requirement of asyncio.StreamWriter.write ( #139564 )
2025-10-04 21:44:05 +05:30
Semyon Moroz
8d17d79299
gh-138044: Remove deprecated parameter alias for importlib.resources.files ( #138059 )
2025-10-04 14:53:43 +01:00
Adam Turner
c33dc154b4
GH-123299: Copyedit 3.14 What's New: New and Improved Modules ( #139530 )
2025-10-04 15:58:51 +03:00
Alex Willmer
fb114cf497
gh-139495: Fix hashlib.file_digest() versionchanged description of BlockingIOError (GH-139496)
...
* Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`
The sentence was missing a negation and contradicted the other two
descriptions in the same commit. I believe code behaviour is correct.
* fixup! Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`
* Remove unncessary NEWS.d entry
2025-10-02 12:50:36 -07:00
Peter
f3d7faeafa
gh-139487: add missing imports for standalone doctest Enum examples ( #139488 )
2025-10-02 12:28:29 +02:00
Bénédikt Tran
bc172ee830
gh-139283: correctly handle size limit in cursor.fetchmany() ( #139296 )
...
Passing a negative or zero size to `cursor.fetchmany()` made it fetch all rows
instead of none.
While this could be considered a security vulnerability, it was decided to treat
this issue as a regular bug as passing a non-sanitized *size* value in the first
place is not recommended.
2025-09-30 11:18:55 +02:00
AN Long
bd1ada6df3
gh-138092: Allow calling mmap.flush with offset only ( #138093 )
2025-09-30 11:08:50 +02:00
Adam Turner
8bfdda21a3
GH-123299: Copyedit 3.14 What's New: CPython bytecode changes ( #139402 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-09-29 15:11:54 +00:00
Yongzi Li
519bc470fc
gh-135447: Document the `NOT_TAKEN & POP_ITER` bytecode instructions ( #135803 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2025-09-28 16:46:01 +00:00
Bénédikt Tran
666112376d
gh-90949: expose Expat API to tune exponential expansion protections ( #139368 )
...
Expose the XML Expat 2.7.2 APIs to tune protections against
"billion laughs" [1] attacks.
The exposed APIs are available on Expat parsers, that is,
parsers created by `xml.parsers.expat.ParserCreate()`, as:
- `parser.SetBillionLaughsAttackProtectionActivationThreshold(threshold)`, and
- `parser.SetBillionLaughsAttackProtectionMaximumAmplification(max_factor)`.
This completes the work in f04bea44c3 ,
and improves the existing related documentation.
[1]: https://en.wikipedia.org/wiki/Billion_laughs_attack
2025-09-28 08:27:04 +00:00
Bénédikt Tran
68a1778b77
gh-90949: amend GH-139234 in prevision of future mitigation API ( #139366 )
...
Fix some typos left in f04bea44c3 ,
and simplify some internal functions to ease maintenance of future
mitigation APIs.
2025-09-26 17:59:40 +00:00
Bénédikt Tran
f04bea44c3
gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) ( #139234 )
...
Expose the XML Expat 2.7.2 mitigation APIs to disallow use of
disproportional amounts of dynamic memory from within an Expat
parser (see CVE-2025-59375 for instance).
The exposed APIs are available on Expat parsers, that is,
parsers created by `xml.parsers.expat.ParserCreate()`, as:
- `parser.SetAllocTrackerActivationThreshold(threshold)`, and
- `parser.SetAllocTrackerMaximumAmplification(max_factor)`.
2025-09-26 14:13:56 +00:00
Sebastian Pipping
6fa1e552e0
gh-127502: Fix typo in XML security notes ( #139335 )
2025-09-26 11:59:08 +02:00
Raymond Hettinger
7909b30493
gh-138682: Add symmetric difference to Counter (gh-138766)
2025-09-26 00:04:49 -05:00