Robsdedude
945bf8ce1b
gh-144706: Warn against using synchronization primitives within signal handlers (GH-144736)
2026-02-12 18:15:23 -05:00
Victor Stinner
9e5e1f9988
gh-121617: Include <string.h> for Py_CLEAR() macro ( #144666 )
...
Python.h now also includes <string.h> in the limited C API version 3.11
and newer to fix the Py_CLEAR() macro which uses memcpy().
Add a Py_CLEAR() test in test_cext.
Modify also _Py_TYPEOF to use C23 typeof() if available.
2026-02-12 17:03:55 +01:00
Stan Ulbrych
2e3e76e5cd
gh-57095: Add note about input splitting in datetime.*.strptime (GH-131049)
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-02-12 11:35:42 +01:00
Adorilson Bezerra
f912c835b9
gh-106318: Fix incorrectly rendered code block in str.isalnum() docs (GH-144718)
2026-02-12 08:40:17 +01:00
Pablo Galindo Salgado
46d5106cfa
gh-142349: Implement PEP 810 - Explicit lazy imports ( #142351 )
...
Co-authored-by: T. Wouters <twouters@meta.com >
Co-authored-by: Brittany Reynoso <breynoso@meta.com>
Co-authored-by: Dino Viehland <dinoviehland@meta.com>
2026-02-12 00:15:33 +00:00
Ronald Eddy Jr
3718f4be60
Fix typos and grammar errors across documentation ( #144709 )
2026-02-11 16:35:25 +00:00
Hugo van Kemenade
cf23fcd5f7
Merge branch 'main' of https://github.com/python/cpython
2026-02-11 17:34:44 +02:00
Kumar Aditya
347d3594d3
gh-143300: implement PyUnstable_SetImmortal for marking objects as immortal ( #144543 )
2026-02-11 20:59:31 +05:30
Lysandros Nikolaou
35dc547ab5
gh-142518: Document thread-safety guarantees of dict operations ( #144184 )
...
* Address feedback; move thread safety section below see-also
* Address feedback - don't mention equality comparison only
* Change admonition to rubric; cross-reference glossary
---------
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-02-11 14:33:00 +01:00
Ned Batchelder
37430cac94
Docs: remove links of modules to themselves ( #144695 )
2026-02-11 07:56:36 -05:00
Lysandros Nikolaou
12dbae4c02
gh-142518: Define lock-free and per-object lock ( #144548 )
...
- Add definitions of lock-free and per-object lock to the glossary
- Cross-reference these from list thread safety notes
- Change admonition to rubric
2026-02-11 13:55:36 +01:00
Hugo van Kemenade
15b216f30d
Python 3.15.0a6
2026-02-11 14:23:15 +02:00
Adorilson Bezerra
936d60dbe1
gh-106318: Improve str.rstrip() method doc ( #143893 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-11 09:41:37 +01:00
László Kiss Kollár
d18dbd5e1c
gh-138122: Add sampling profiler visualisation to docs ( #142772 )
...
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
2026-02-10 23:09:07 +00:00
Dov Murik
87c9789b9a
docs: profiling.sampling: Fix sampling-rate default value description typo ( #144686 )
2026-02-10 21:55:40 +00:00
Hugo van Kemenade
b4a620d2d7
gh-133879: Copyedit "What's new in Python 3.15" ( #144661 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-10 18:49:20 +02:00
Aarni Koskela
40a82abe93
Clarify the docs for args in asyncio callbacks ( #143873 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-02-10 13:10:01 +00:00
kovan
9b8d59c136
gh-72798: Add mapping example to str.translate documentation ( #144454 )
...
Add an example showing how to use str.translate() with a dictionary
mapping directly, demonstrating character replacement and deletion.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 11:13:40 +01:00
Bartosz Sławecki
ff531f9005
gh-132604: Deprecate inherited runtime checkability of protocols (GH-143806)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2026-02-09 15:13:47 +01:00
Jason Yalim, PhD
d99f3fc474
gh-140715: Add %F format code support to strptime() (GH-140647)
...
Also: add tests for the `%T` format code
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-09 13:24:15 +01:00
Sergey B Kirpichev
aa6ed802f2
gh-119740: Remove obsoleted removal announce for trunc delegation (GH-144622)
...
This was done in GH-119743 (3.14).
2026-02-09 13:41:05 +02:00
Petr Viktorin
b22ff1e543
gh-140550: allow slots that repeat information from PyModuleDef (GH-144340)
...
When integrating slots-based module creation is with the inittab,
which currently requires PyModuleDef, it would be convenient to
reuse the the same slots array for the MethodDef.
Allow slots that match what's already present in the PyModuleDef.
2026-02-09 11:35:43 +01:00
Adorilson Bezerra
432ddd99e2
gh-106318: Add examples for str.partition() method ( #142823 )
2026-02-09 00:10:43 +02:00
Adorilson Bezerra
3dd7a3c65a
gh-106318: Add example for str.isalnum() ( #137550 )
2026-02-09 00:08:18 +02:00
Guo Ci
d73634935c
For enum.bin, update versionadded directive from 3.10 to 3.11 ( #144574 )
2026-02-07 23:35:02 -08:00
Bénédikt Tran
934997218e
gh-143700: document secrets.DEFAULT_ENTROPY as an opaque value ( #144568 )
2026-02-07 23:36:42 +01:00
Guo Ci
6665115679
gh-84116: Add missing backslash to _SubParsersAction.add_parser signature ( #144572 )
2026-02-07 19:02:01 +01:00
kovan
0e7c06a858
gh-142044: Add note to prefer asyncio.timeout[_at] over asyncio.Timeout ( #144449 )
2026-02-07 12:22:51 +00:00
kovan
16efaa225c
gh-140490: Document changes for PurePath.stem in Python 3.14 ( #144450 )
2026-02-07 13:19:20 +01:00
Krishna-web-hub
74db4404ea
gh-84116: Docs: Document help and aliases for argparse.add_parser() ( #140574 )
...
* gh-140281: Doc: Update free-threading how-to
* gh-140281: Doc: Update free-threading how-to
* Fix trailing whitespace
* doc fixing of the cpython fixes#84116
* Docs: Document help and aliases for argparse.add_parser() (gh-84116)
* Docs: Document help and aliases for argparse.add_parser() (gh-84116)
* Fix trailing whitespace
* Fix trailing whitespace
* Fix trailing whitespace
* Fix trailing whitespace
* Fix trailing whitespace
* Fix trailing whitespace
* Fix trailing errors
* Fix trailing errors and spaces
* Fix docutils formatting, NEWS ref, and trailing whitespace
* Docs: Update argparse.rst and add NEWS entry
* Delete Doc/howto/free-threading-python.rst
* Delete Misc/NEWS.d/next/Documentation/2025-10-25-00-49-43.gh-issue-140281.tuMQUe.rst
* adding the depreceated tag
* The error indexing was fixed
* Fix trailing whitespace
* Restore missing free-threading documentation
* fixing some minor error
* fixing some minor error part 2
* fixing some minor error part 3
* Fix NEWS entry format
* Final cleanup of NEWS entry format 2
* changes in the argparse.rst
* Remove unnecessary NEWS entry
* Fixing the issue as requested
* Added the Changes done before.
* done the changes
* done the changes#1
* Apply suggestion from @picnixz
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Apply suggestion from @picnixz
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Done the changes
* Done the new changes
* The versionadded is rectified
* Update Doc/library/argparse.rst
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
* Docs editing
* Docs fixing whitespace
* Docs rectifiying
* little bit rectification
* Indentation rectification
* Indentation rectification 1
* Apply suggestion from @picnixz
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* deprecated rectification
* Remove mistakenly added NEWS entry
* Update Doc/library/argparse.rst
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* changes #1
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Update Doc/library/argparse.rst 2
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* removed useless thing
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* changed according to the request
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Updated the test part
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-06 13:26:44 -08:00
Stan Ulbrych
fb196c6f32
gh-140715: Update datetime.*.str*time format code tables (GH-140716)
2026-02-06 17:08:26 +01:00
kangtastic
45d4a34720
gh-101178: Add Ascii85, Base85, and Z85 support to binascii (GH-102753)
...
Add Ascii85, Base85, and Z85 encoders and decoders to binascii,
replacing the existing pure Python implementations in base64.
This makes the codecs two orders of magnitude faster and consume
two orders of magnitude less memory.
Note that attempting to decode Ascii85 or Base85 data of length 1 mod 5
(after accounting for Ascii85 quirks) now produces an error, as no
encoder would emit such data. This should be the only significant
externally visible difference compared to the old implementation.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-02-06 16:43:16 +02:00
Ned Batchelder
638d22c6e7
Docs: module pages should not link to themselves ( #144505 )
...
* Docs: module pages should not link to themselves
* fix header punctuation
2026-02-06 06:48:27 -05:00
Petr Viktorin
f85e1170d2
gh-141004: Reorganize and reword the 'Useful macros' section (GH-144471)
...
- Group the macros
- Roughly order them to put the most important ones first
- Add expansions where it makes sense; especially if there's
an equivalent in modern C or a common compiler
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2026-02-06 11:55:11 +01:00
Stan Ulbrych
cf60e0c452
Docs: Pull expat license from Modules/expat/ in license.rst ( #144488 )
...
Use license directly from Modules/expat/COPYING.
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-02-06 09:54:34 +01:00
Seth Michael Larson
957f9fe162
gh-74453: Deprecate os.path.commonprefix ( #144436 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-02-05 22:37:05 +02:00
Zackery Spytz
01a1dd283b
gh-77188: Add support for pickling private methods and nested classes (GH-21480)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-02-05 19:50:51 +00:00
Serhiy Storchaka
4644fed819
gh-144001: Support ignoring the invalid pad character in Base64 decoding (GH-144306)
2026-02-05 21:14:49 +02:00
Serhiy Storchaka
c81e1843d4
gh-74955: Document that __all__ must contain strings in normalization form NFKC (GH-144504)
2026-02-05 20:06:33 +02:00
Raymond Hettinger
50e107f149
More realistic lru_cache example (gh-144517)
2026-02-05 12:04:12 -06:00
NewUserHa
d9a2e587fc
gh-142407: Clarify copy performance on Windows in shutil docs (GH-142408)
2026-02-05 17:45:14 +00:00
Seth Michael Larson
7e777c587f
gh-144484: Warn users not to use wsgiref in production
2026-02-05 15:43:39 +00:00
Serhiy Storchaka
67ddba9aa9
gh-144148: Update the urllib.parse documentation (GH-144497)
...
Document urlsplit() as the main parsing function and urlparse() as
an obsolete variant.
2026-02-05 16:32:17 +02:00
Raymond Hettinger
b6d8aa436b
Itertools recipes: Replace the tabulate() example with running_mean() (gh-144483)
2026-02-04 14:21:20 -06:00
Adorilson Bezerra
1b6d737ee0
gh-106318: Add examples for str.startswith() method ( #144369 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-04 18:17:42 +01:00
Peter Bierma
914fbec214
gh-141004: Document remaining pyport.h utility macros (GH-144279)
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-02-04 11:43:47 -05:00
Petr Viktorin
e423e0c2cc
gh-141984: Reword and reorganize Subscription (and Slicing) docs (GH-141985)
...
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-04 16:08:23 +00:00
Lucas Colley
0bb4ecafcb
gh-142903: add conda-forge license for pixi-packages ( #143468 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: h-vetinari <h.vetinari@gmx.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-04 12:36:14 +00:00
Serhiy Storchaka
f73d2e7003
gh-144386: Add support for descriptors in ExitStack and AsyncExitStack ( #144420 )
...
__enter__(), __exit__(), __aenter__(), and __aexit__() can now be
arbitrary descriptors, not only normal methods, for consistency with the
"with" and "async with" statements.
2026-02-04 13:20:18 +02:00
kovan
34e5a63f14
gh-141444: Replace dead URL in urllib.robotparser example (GH-144443)
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 10:45:15 +02:00