Yüce Tekol
7dc42b67a7
gh-137884: Added threading.get_native_id() on Illumos/Solaris (GH-137927)
2025-08-20 17:10:44 +00:00
Scott Noyes
3143ceeb1d
gh-137481: Fix abbreviation of day names in TextCalendar (GH-137482)
...
Use the length of the longest day name in the current locale, rather
than a constant 9, to decide if the names should be abbreviated.
2025-08-20 19:55:50 +03:00
Ken Jin
7fda8b66de
gh-137728 gh-137762: Fix bugs in the JIT with many local variables (GH-137764)
2025-08-20 22:53:54 +08:00
Serhiy Storchaka
eae9d7de1c
gh-137477: Fix inspect.getblock() for generator expressions (GH-137488)
...
This fixes also inspect.getsourcelines() and inspect.getsource().
2025-08-20 16:18:08 +03:00
Tangyuan
7685b8ada8
gh-137900: Improve dataclasses frozen parameter documentation ( #137937 )
2025-08-20 09:08:45 -04:00
Serhiy Storchaka
23adbf53c5
gh-137044: To weaken the statement regarding the RLIM_INFINITY value (GH-137954)
2025-08-20 15:05:38 +03:00
Maximilian Linhoff
9b5235b62e
Fix typo in logging docs (GH-137981)
2025-08-20 07:07:32 -04:00
Itamar Oren
d22a745644
gh-137964: Remove the "experimental" designation from the Windows installer (GH-137965)
2025-08-19 22:30:59 +01:00
Steve Dower
7d06a0af17
gh-120037: Disable user site packages when a ._pth file is used (GH-137428)
2025-08-19 21:28:28 +01:00
Serhiy Storchaka
e39255e76d
Update the availability info in the resource docs (GH-137922)
2025-08-19 18:11:03 +03:00
Serhiy Storchaka
8700404f86
Update the dbm documentation (GH-137919)
...
Unify documentation for all backends, enumerate all not implemented mapping
methods, document particularities of implemented mapping methods.
2025-08-19 18:05:24 +03:00
Serhiy Storchaka
ac37b77441
gh-137044: Fix test_resource on 32-bit Linux (GH-137941)
2025-08-19 15:22:30 +03:00
PrinceNaroliya
379161dd51
[docs] minor, fix grammar in ssl.SSLContect.sslsocket_class docstring (GH-137935)
...
Fix grammar in ssl.SSLContect.sslsocket_class docstring
---------
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com >
2025-08-19 12:00:39 +00:00
Petr Viktorin
719e5c3f71
gh-123681: Check NORMALIZE_CENTURY behavior at runtime; require C99 (GH-136022)
...
A runtime check is needed to support cross-compiling.
Remove the _Py_NORMALIZE_CENTURY macro.
Remove _pydatetime.py's _can_support_c99.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com >
2025-08-19 12:59:03 +02:00
Peter Bierma
b07a267953
gh-137883: Check the recursion limit for specialized keyword argument calls (GH-137887)
2025-08-19 09:53:38 +01:00
Adam Turner
bb75dec87f
gh-95534: Convert `ZlibDecompressor.__new__` to AC ( #137923 )
2025-08-19 09:52:13 +01:00
Mikhail Efimov
06dd63501a
gh-136438: Make sure test_dis pass with all optimization levels (GH-136593)
...
Now tests pass with all combinations of -OO and --without-doc-strings.
2025-08-19 10:48:35 +02:00
Sergey B Kirpichev
9cb91305ab
gh-73487: Convert `_decimal` to use Argument Clinic (part 3) ( #137844 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2025-08-19 09:20:06 +01:00
Serhiy Storchaka
6e2b9a2130
gh-137512: Add new constants in the resource module (GH-137513)
...
* RLIMIT_NTHR
* RLIMIT_THREADS
* RLIMIT_UMTXP
* RLIM_SAVED_CUR
* RLIM_SAVED_MAX
* Document RLIMIT_PIPEBUF. Other doc fixes.
2025-08-19 08:52:45 +02:00
Jason R. Coombs
3706ef66ef
Revert "gh-132947: Apply changes from importlib_metadata 8.7 ( #137885 )" ( #137924 )
...
This reverts commit 5292fc00f2 .
2025-08-18 20:57:36 +00:00
ggqlq
8750e5ecfc
gh-134869: Fix Ctrl+C corrupts REPL autocomplete ( #134929 )
2025-08-18 21:54:39 +01:00
Jason R. Coombs
5292fc00f2
gh-132947: Apply changes from importlib_metadata 8.7 ( #137885 )
...
* Copied files from python/importlib_metadata@b67ac80c49 .
2025-08-18 10:54:10 -07:00
Adam Turner
918e3ba6c0
GH-137623: Use an AC decorator for docstring line length enforcement ( #137690 )
2025-08-18 18:29:00 +01:00
Serhiy Storchaka
0324c726de
gh-137044: Make resource.RLIM_INFINITY always positive (GH-137511)
...
It is now a positive integer larger larger than any limited resource value.
This simplifies comparison of the resource values.
Previously, it could be negative, such as -1 or -3, depending on platform.
Deprecation warning is emitted if the old negative value is passed.
2025-08-18 19:28:56 +03:00
Bartosz Sławecki
138ed6db9f
gh-44538: Mention nested classes/functions in doctest docs (GH-137870)
2025-08-18 10:58:23 -04:00
Sergey B Kirpichev
83387e033d
gh-73487: Convert `_decimal` to use Argument Clinic (part 2) ( #137637 )
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com >
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2025-08-18 14:21:00 +01:00
Kumar Aditya
1c3950abc1
gh-135862: add C contiguous one-dimensional buffer requirement to asyncio.StreamWriter docs ( #137910 )
2025-08-18 18:36:43 +05:30
Petr Viktorin
7dfa048bbb
gh-135228: Create __dict__ and __weakref__ descriptors for object (GH-136966)
...
This partially reverts #137047 , keeping the tests for GC collectability of the
original class that dataclass adds `__slots__` to.
The reference leaks solved there are instead solved by having the `__dict__` &
`__weakref__` descriptors not tied to (and referencing) their class.
Instead, they're shared between all classes that need them (within
an interpreter).
The `__objclass__` ol the descriptors is set to `object`, since these
descriptors work with *any* object. (The appropriate checks were already
made in the get/set code, so the `__objclass__` check was redundant.)
The repr of these descriptors (and any others whose `__objclass__` is `object`)
now doesn't mention the objclass.
This change required adjustment of introspection code that checks
`__objclass__` to determine an object's “own” (i.e. not inherited) `__dict__`.
Third-party code that does similar introspection of the internals will also
need adjusting.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2025-08-18 14:25:51 +02:00
Bar Harel
92be979f64
gh-127859: Fixed documentation for call_later and call_at for early wakeup in asyncio ( #137859 )
2025-08-18 17:48:54 +05:30
Petr Viktorin
d8a9466e29
bpo-38735: Don't fail when importing from / with sys.pycache_prefix set (GH-30456)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com >
2025-08-18 13:53:01 +02:00
Semyon Moroz
043f251154
gh-131885: Use positional-only markers for the `decimal` module ( #131990 )
2025-08-18 12:49:21 +01:00
Weilin Du
63fffb15f5
gh-137847: Add examples for UUIDv6-8 ( #137848 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
2025-08-18 11:24:19 +00:00
Serhiy Storchaka
0c8fecc4cf
gh-137729: Fix support for locales with @-modifiers (GH-137253)
2025-08-18 10:11:15 +03:00
Hood Chatham
bc2872445b
gh-127146: Emscripten: Add test_sample_profiler skips where needed ( #137815 )
...
Emscripten doesn't have the `socket.SO_REUSEADDR` constant; skip tests that
require that symbol to exist.
2025-08-18 07:57:15 +08:00
Christoph Walcher
8e3244d39b
Emend an error in `string.templatelib` example output ( #137890 )
2025-08-17 23:12:32 +01:00
Adam Turner
25b97289e4
GH-137841: Open tzdata/zones file with UTF-8 encoding ( #137872 )
2025-08-17 17:13:57 +01:00
Serhiy Storchaka
7636a66635
gh-135661: Fix parsing unterminated bogus comments in HTMLParser (GH-137873)
...
Bogus comments that start with "<![CDATA[" should not include the starting "!"
in its value.
2025-08-17 13:37:50 +03:00
Rafael Fontenelle
eac37b46d9
gh-131591: fix formatting of remote debugger docs ( #137225 )
2025-08-17 11:11:31 +05:30
Terry Jan Reedy
3663b2ad54
gh-137846: Add missing 'be' to profile doc. ( #137856 )
...
Insert 'be' into 'will interpreted'.
2025-08-16 10:29:47 -04:00
Victor Stinner
5c0231c27a
gh-137725: Convert faulthandler to Argument Clinic ( #137726 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2025-08-16 15:16:04 +02:00
Kumar Aditya
038a6e3b95
gh-90483: fix docs of SubprocessTransport.get_pipe_transport ( #137852 )
2025-08-16 11:11:45 +00:00
Kumar Aditya
4b2dbe8e0a
gh-101359: clarify docs for asyncio.Event.clear ( #137849 )
2025-08-16 10:50:54 +00:00
Jason R. Coombs
ec4021c6d7
gh-120492: Sync importlib_metadata 8.2.0 ( #124033 )
...
* Sync with importlib_metadata 8.2.0
Removes deprecated behaviors, including support for `PackageMetadata.__getitem__` returning None for missing keys and Distribution subclasses not implementing abstract methods.
Prioritizes valid dists to invalid dists when retrieving by name (python/cpython/#120492). Adds SimplePath to `importlib.metadata.__all__`.
* Add blurb
2025-08-15 14:19:23 -07:00
Nick Burns
d86c2257a6
gh-92936: update http.cookies docs post GH-113663 ( #137566 )
...
* add versionchanged and example with quotes in cookie value
* update whatsnew with http.cookies change
* Update Doc/library/http.cookies.rst
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
* Update Doc/whatsnew/3.15.rst
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
* spelling, quote
* demonstrate json
* Update Doc/library/http.cookies.rst
Co-authored-by: Senthil Kumaran <senthil@python.org >
* Apply suggestions from code review
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
* shorter description
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
Co-authored-by: Senthil Kumaran <senthil@python.org >
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2025-08-15 13:47:46 -07:00
ggqlq
03f5519d77
gh-131178: Add tests for site command-line interface (GH-133582)
2025-08-15 14:00:43 -04:00
rimchoi
eee6589c17
gh-137777: Disband the 'Program Frameworks' chapter ( #137796 )
2025-08-15 18:41:09 +01:00
Pablo Galindo Salgado
4e08a9f97a
gh-137078: Fix keyword typo recognition when executed over files ( #137079 )
2025-08-15 15:14:13 +00:00
Adam Turner
dc53a3e52a
GH-123299: Copyedit 3.14 What's New: Removed ( #137794 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
2025-08-15 14:56:13 +00:00
Kumar Aditya
31bbea1477
gh-137808: use argument clinic for _thread.lock and _thread.RLock ( #137809 )
2025-08-15 13:58:10 +00:00
Chaemin-Lim
d6719c6be6
gh-137760: Update REPL constants documentation (gh-137798)
2025-08-15 22:53:15 +09:00