Micha Albert
fa4e088668
gh-134150: Clarify distinction between JSON and Python objects ( #134154 )
...
* gh-134150: Clarify distinction between JSON objects and Python objects in json module docs
* Revert change to JSON introduction
* Clarify occurrences of "object literal" as JSON
2025-05-17 21:47:37 -04:00
Clifford Gama
b41d79c776
Docs: fix spelling of "test case" in unittest documentation ( #134137 )
2025-05-17 13:36:38 +02:00
Victorien
9d73875072
gh-113878: fix versionadded in dataclasses.field() documentation ( #134065 )
2025-05-17 10:00:13 +02:00
Bénédikt Tran
faac627e47
gh-133810: remove http.server.CGIHTTPRequestHandler and --cgi flag ( #133811 )
...
The CGI HTTP request handler has been deprecated since Python 3.13.
2025-05-17 09:58:16 +02:00
Saleh Dehqanpour
ea2d707bd5
gh-117026: Remove outdated sentence in SimpleHTTPRequestHandler docs (GH-117027)
...
The code was changed in 0f7cddc308 (bpo-839496/gh-39531).
2025-05-16 19:12:40 +00:00
alexey semenyuk
ac8df4b589
gh-133286: add explanation about seq for pathlib Pattern Language ( #133340 )
2025-05-16 18:42:06 +00:00
Kumar Aditya
d94b1e9cac
gh-133515: fix docs for unawaited coroutines in debug mode ( #134081 )
2025-05-16 21:01:15 +05:30
Alexey Makridenko
7a4a6cf2b8
gh-133604: remove deprecated java_ver function ( #133888 )
2025-05-16 16:17:54 +02:00
Semyon Moroz
62f66caa8c
gh-124210: Add introduction to threading docs ( #127046 )
...
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-05-16 15:17:29 +03:00
Bénédikt Tran
3f61ea3add
gh-133873: remove deprecated mark interface for wave.Wave_{read,write} objects ( #133874 )
2025-05-15 14:52:07 +00:00
Joey Smith
3e23047363
gh-133986: Document string split algorithm when sep is None and maxsplit is 0 ( #133987 )
...
* Document string split algorithm when sep is None and maxsplit is 0
* Update Doc/library/stdtypes.rst
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
---------
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
2025-05-14 06:17:26 -04:00
Sebastian Pipping
2eb49d278e
gh-133577: Add parameter formatter to logging.basicConfig (GH-133578)
2025-05-14 07:45:00 +01:00
Serhiy Storchaka
18bf8f84aa
gh-95380: Remove the 1024 bytes limit in fcntl.fcntl() and fcntl.ioctl() (GH-132907)
2025-05-13 14:44:07 +00:00
ppaez
86c1d439e0
gh-133413: Fix references to removed Request.has_data (GH-133414)
...
The has_data() method of http.request.Request
was removed in version 3.4.
2025-05-12 21:17:57 +03:00
Stan Ulbrych
d1533115ba
gh-133530: Modify Heapq docs image settings (gh-133937)
...
Add class
2025-05-12 11:03:28 -05:00
mkaraev
27ed64575d
gh-133904: Fix math.factorial documentation ( #133907 )
...
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-05-12 09:41:15 +00:00
Jelle Zijlstra
0eb448cae5
gh-119180: annotationlib: Fix values of Format members in docs ( #133841 )
...
gh-119180: Fix values of Format members in docs
2025-05-11 08:43:24 -07:00
Jelle Zijlstra
3396df56d0
gh-119180: More documentation for PEP 649/749 ( #133552 )
...
The SC asked that the Appendix in PEP-749 be added to the docs.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-11 08:43:17 -07:00
Kentaro Jay Takahashi
efcc42ba70
gh-132642: document how to render human-readable timedelta objects ( #133825 )
2025-05-10 17:33:28 +02:00
Kokona
d13d5fdf61
gh-132971: Update shutil.which() docs (GH-133067)
2025-05-10 10:06:19 +03:00
Yongzi Li
076004ae54
Docs: use boolean constants for returning boolean value (GH-133325)
2025-05-09 17:11:50 +03:00
Will Childs-Klein
6801bd32cb
gh-133623: Add ssl.HAS_PSK_TLS13 to detect external TLS 1.3 PSK support ( #133624 )
2025-05-09 09:09:09 +02:00
Serhiy Storchaka
dcf93c4c93
gh-133595: Clean up sqlite3.Connection APIs (GH-133605)
...
* All parameters of sqlite3.connect() except "database" are now keyword-only.
* The first three parameters of methods create_function() and
create_aggregate() are now positional-only.
* The first parameter of methods set_authorizer(), set_progress_handler()
and set_trace_callback() is now positional-only.
2025-05-08 15:42:00 +03:00
dgpb
afed5f8835
gh-125028: Prohibit placeholders in partial keywords (GH-126062)
2025-05-08 10:53:53 +03:00
Jonas Obrist
4fcd377563
gh-133641: Doc: Add missing source link in `concurrent.futures` ( #133642 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-08 07:21:51 +00:00
Stan Ulbrych
9fcebb3611
gh-133530: Replace binary tree textual digram with image (gh-133591)
...
Replace with image
2025-05-07 19:05:06 -05:00
Yongzi Li
61ac88c06e
gh-133361: move the explanation of dict equal before its use ( #133424 )
...
Also move up the explanation of insertion order preservation. Both paragraphs seemed out of place down where they were.
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-05-07 18:04:49 -04:00
Hugo van Kemenade
5ea24116b0
Merge branch 'main' of https://github.com/python/cpython
2025-05-07 18:53:08 +03:00
Brian Schubert
ee76e36d76
gh-131535: Fix stale example in html.parser docs, make examples doctests (GH-131551)
2025-05-07 18:50:05 +03:00
Hugo van Kemenade
b092705907
Python 3.14.0b1
2025-05-06 18:33:52 +03:00
Hugo van Kemenade
3dfed23092
gh-123299: Copyedit "What's New in Python 3.14" ( #133452 )
...
Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
2025-05-06 15:05:20 +03:00
Semyon Moroz
bf8bbe9a81
gh-77065: Add optional keyword-only argument echo_char for getpass.getpass ( #130496 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-05-06 14:56:20 +03:00
Valentin Berlier
b936ccdb6f
gh-130117: Document why nested Union, Literal, and Annotated types referenced through a type alias are not flattened ( #130119 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2025-05-05 19:05:16 -07:00
Brandt Bucher
b1aa515bd6
GH-133231: Add JIT utilities in sys._jit (GH-133233)
2025-05-05 15:25:22 -07:00
Neil Schemenauer
893034cf93
gh-132917: Use RSS + swap for estimate of process memory usage (gh-133464)
2025-05-05 14:15:05 -07:00
Semyon Moroz
2b4e2b7830
gh-133367: Add missing options to ast CLI ( #133369 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-05-05 17:17:43 +00:00
Neil Schemenauer
5c245ffce7
gh-132917: Check resident set size (RSS) before GC trigger. (gh-133399)
...
For the free-threaded build, check the process resident set size (RSS)
increase before triggering a full automatic garbage collection. If the RSS
has not increased 10% since the last collection then it is deferred.
2025-05-05 17:17:05 +00:00
Barney Gale
8e08ac9f32
GH-123599: url2pathname(): don't call gethostbyname() by default ( #132610 )
...
Follow-up to 66cdb2bd8a .
Add *resolve_host* keyword-only argument to `url2pathname()`, defaulting to
false. When set to true, we call `socket.gethostbyname()` to resolve the
URL hostname.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2025-05-05 17:03:42 +00:00
Stan Ulbrych
f5b784741d
gh-110067: Make max heap methods public and add missing ones (GH-130725)
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-05-05 17:52:49 +02:00
Petr Viktorin
59f78d7b06
gh-131747: ctypes: Deprecate _pack_ implicitly setting _layout_ = 'ms' (GH-133205)
...
On non-Windows, warn when _pack_ implicitly changes default _layout_
to 'ms'.
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-05-05 15:32:06 +02:00
Lysandros Nikolaou
b97328ef5d
gh-107006: Move threading.local docstring to docs ( #131840 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-05-05 15:00:15 +03:00
Tian Gao
ff4959b6b0
gh-113081: Highlight source code in pdb ( #133355 )
2025-05-05 09:49:52 +02:00
Thomas Grainger
08d7687094
gh-128307: Support eager_start=<bool> in create_eager_task_factory and various create_task functions ( #128306 )
...
Some create_task() functions were changed from `name=None, context=None` to `**kwargs`.
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
2025-05-05 04:58:07 +00:00
Nadeshiko Manju
2bbcaedb75
gh-133089: Use original timeout value for TimeoutExpired when the func subprocess.run is called with a timeout (GH-133103)
...
Signed-off-by: Manjusaka <me@manjusaka.me>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2025-05-05 01:15:31 +00:00
Jelle Zijlstra
af5799f305
gh-125618: Make FORWARDREF format succeed more often ( #132818 )
...
Fixes #125618 .
2025-05-04 15:21:56 -07:00
Jelle Zijlstra
7cb86c5def
gh-132426: Add get_annotate_from_class_namespace replacing get_annotate_function ( #132490 )
...
As noted on the issue, making get_annotate_function() support both types and
mappings is problematic because one object may be both. So let's add a new one
that works with any mapping.
This leaves get_annotate_function() not very useful, so remove it.
2025-05-04 07:26:42 -07:00
Serhiy Storchaka
5a57248b22
gh-81793: Always call linkat() from os.link(), if available (GH-132517)
...
This fixes os.link() on platforms (like Linux and OpenIndiana) where the
system link() function does not follow symlinks.
* On Linux, it now follows symlinks by default and if
follow_symlinks=True is specified.
* On Windows, it now raises error if follow_symlinks=True is passed.
* On macOS, it now raises error if follow_symlinks=False is passed and
the system linkat() function is not available at runtime.
* On other platforms, it now raises error if follow_symlinks is passed
with a value that does not match the system link() function behavior
if if the behavior is not known.
Co-authored-by: Joachim Henke <37883863+jo-he@users.noreply.github.com>
Co-authored-by: Thomas Kluyver <takowl@gmail.com>
2025-05-04 17:24:10 +03:00
Serhiy Storchaka
7363e8d24d
gh-133139: Add curses.assume_default_colors() (GH-133145)
...
This is a refinement of the curses.use_default_colors() function which
allows to change the color pair 0.
2025-05-03 23:33:22 +03:00
Serhiy Storchaka
add0ca9ea0
gh-133306: Use \z instead of \Z in fnmatch.translate() and glob.translate() (GH-133338)
2025-05-03 17:58:21 +03:00
Semyon Moroz
1550c30fd5
gh-130160: use .. program:: directive for documenting platform CLI ( #133335 )
2025-05-03 15:05:04 +03:00