Peter Bierma
0b260305d3
gh-141004: Document Py_GetRecursionLimit and Py_SetRecursionLimit (GH-141151)
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com >
2025-11-06 16:37:52 +00:00
AN Long
bea0d3d12b
gh-140826: Update winreg's docstring (GH-141050)
2025-11-06 17:33:30 +02:00
Dino Viehland
13f09a60f4
gh-141150: Don't rely on implicit conversion from void * to pointer in _PyModule… ( #141147 )
...
Don't rely on implicit conversion from void * to pointer in _PyModule_GetToken
2025-11-06 07:16:56 -08:00
Victor Stinner
2e5e6fd380
gh-134745: Use "pymutex" for sys.thread_info on Windows ( #141140 )
2025-11-06 16:10:39 +01:00
Peter Bierma
bcc524f82d
gh-141004: Document PyLong_FromPid and PyLong_AsPid (GH-141028)
...
Co-authored-by: Victor Stinner <vstinner@python.org >
2025-11-06 09:01:48 -05:00
Stan Ulbrych
54110e20e0
gh-141004: Document Py_hexdigits (GH-141059)
...
Co-authored-by: Victor Stinner <vstinner@python.org >
2025-11-06 08:48:42 -05:00
Peter Bierma
1697cb5710
gh-141004: Document built-in iterator types in the C API (GH-141006)
...
Adds documentation for each of the following:
- PyEnum_Type
- PyFilter_Type
- PyMap_Type
- PyReversed_Type
- PyZip_Type
In addition, PyRange_Type and PyRange_Check are also documented.
2025-11-06 07:29:04 -05:00
Petr Viktorin
d2ce6d708a
gh-139707: Add docs for optional modules (GH-140171)
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com >
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
Co-authored-by: Emma Smith <emma@emmatyping.dev >
Co-authored-by: Author: Terry Jan Reedy <tjreedy@udel.edu >
Co-authored-by: Victor Stinner <vstinner@python.org >
2025-11-06 11:49:44 +01:00
Lysandros Nikolaou
86ab7bb87a
gh-137232: Update free-threading HOWTOs with up-to-date info for 3.14 ( #140817 )
2025-11-06 11:20:02 +01:00
Serhiy Storchaka
13360efd38
gh-125346: Add more base64 tests (GH-141061)
...
Add more tests for the altchars argument of b64decode() and for the map01
argument of b32decode().
2025-11-06 11:34:32 +02:00
Stan Ulbrych
4e6e208be9
Minor fixes to idle.rst and regenerate help.html ( #140037 )
2025-11-06 03:21:02 -05:00
Terry Jan Reedy
6a7c969d00
gh-129876: Move misplaced IDLE news item ( #141118 )
2025-11-06 03:08:24 -05:00
Stan Ulbrych
d6c89a2df2
gh-140939: Fix memory leak in _PyBytes_FormatEx error path ( #140957 )
2025-11-06 11:20:57 +05:30
RayXu
9037a386c6
docs: fix a grammatical error in function.rst ( #140990 )
2025-11-06 11:18:30 +05:30
Bartosz Sławecki
8822166200
gh-140569: recommend the new REPL in the asyncio REPL docs ( #140570 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
2025-11-06 11:09:07 +05:30
Kumar Aditya
101c9c0a21
gh-118516: clarify that subprocess are automatically killed if transport gets garbage collected ( #140997 )
2025-11-06 10:21:13 +05:30
Savannah Ostrowski
95f6e1275b
GH-108009: Add clarification of parser and argument defaults in argparse docs ( #124154 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM >
2025-11-05 22:46:30 +00:00
Peter Bierma
f0ab07f22c
gh-141004: Document PyDict_GET_SIZE (GH-141078)
2025-11-05 17:32:12 -05:00
Zenith
227f4abacd
gh-76007: remove curses.__version__ doc ( #141052 )
2025-11-06 00:00:36 +02:00
Peter Bierma
5b02c6e920
gh-141004: Document Py_RETURN_NAN and Py_RETURN_INF (GH-141029)
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com >
2025-11-05 17:00:26 -05:00
AN Long
11fc411f98
gh-140916: Remove unused codes in winreg.c ( #140934 )
2025-11-05 22:49:45 +01:00
Edward Xu
b83f379a97
gh-133467: Fix typeobject tp_base race in free threading (gh-140549)
2025-11-05 16:20:40 -05:00
Victor Stinner
986bb0a1a2
gh-83714: Fix stat_nanosecond_timestamp() for 32-bit time_t ( #141069 )
2025-11-05 21:16:37 +01:00
Victor Stinner
f458ac01ba
Fix compiler warnings in remote debugging ( #141060 )
...
Example of fixed warnings on 32-bit Windows:
Python\remote_debugging.c(24,53): warning C4244: 'function':
conversion from 'uint64_t' to 'uintptr_t', possible loss of data
Modules\_remote_debugging_module.c(789,44): warning C4244:
'function': conversion from 'uint64_t' to 'size_t', possible loss
of data
2025-11-05 20:18:45 +01:00
Sachin Shah
1d25b751c5
gh-140650: Fix write(), flush() and close() methods of io.BufferedWriter (GH-140653)
...
They could raise SystemError or crash when getting the "closed" attribute
or converting it to boolean raises an exception.
2025-11-05 21:15:27 +02:00
Mikhail Efimov
3cb1ab0e5d
gh-131527: Stackref debug borrow checker ( #140599 )
...
Add borrow checking to the stackref debug mode
---------
Co-authored-by: mpage <mpage@meta.com >
2025-11-05 11:12:56 -08:00
Sebastian Pipping
baa9f33897
gh-139313: Improve docs on XML security (GH-139460)
...
Clarify that:
- it takes parsing for an attack
- that some doors are closed by default
- only Expat version 2.7.2 has all the fixes
- use of the bundle depends on configuration
2025-11-05 20:59:59 +02:00
Victor Stinner
4ac16dd109
Fix a compiler warning in _randommodule.c ( #141058 )
...
The test just before the cast ensures that the cast cannot overflow.
Fix the warning on 32-bit Windows:
Modules\_randommodule.c(525,28): warning C4244: '=': conversion
from 'uint64_t' to 'Py_ssize_t', possible loss of data
2025-11-05 18:00:32 +00:00
Victor Stinner
8d55faf2d6
Remove internal _PyTime_AsLong() function ( #141053 )
...
* Replace _PyTime_AsLong() with PyLong_FromInt64()
* Replace _PyTime_FromLong() with PyLong_AsInt64().
2025-11-05 18:37:06 +01:00
Victor Stinner
30ab627aab
gh-83714: Fix a compiler warning in stat_nanosecond_timestamp() ( #141043 )
...
Disable the fast path on systems with 32-bit long.
2025-11-05 18:31:35 +01:00
Victor Stinner
579b2f8910
gh-140550: Run make regen-limited-abi ( #141056 )
2025-11-05 16:57:06 +00:00
Peter Bierma
3f6aca1be4
gh-141004: Document PyMemoryView_Type (GH-141034)
2025-11-05 11:45:13 -05:00
Peter Bierma
35528fccdc
gh-141004: Document missing iterator types in the C API (GH-141010)
...
Add documentation for each of the following:
- PyByteArrayIter_Type
- PyBytesIter_Type
- PyListIter_Type
- PyListRevIter_Type
- PySetIter_Type
- PyTupleIter_Type
- PyRangeIter_Type
- PyLongRangeIter_Type
- PyDictIterKey_Type
- PyDictRevIterKey_Type
- PyDictIterValue_Type
- PyDictRevIterValue_Type
- PyDictIterItem_Type
- PyDictRevIterItem_Type
---------
Co-authored-by: Petr Viktorin <encukou@gmail.com >
2025-11-05 09:13:57 -05:00
Petr Viktorin
589a03a8ce
gh-140550: Initial implementation of PEP 793 – PyModExport (GH-140556)
...
Co-authored-by: Victor Stinner <vstinner@python.org >
Co-authored-by: Kumar Aditya <kumaraditya@python.org >
2025-11-05 12:31:42 +01:00
Petr Viktorin
f2bce51b98
gh-140691: urllib.request: Close FTP control socket if data socket can't connect (GH-140835)
...
Co-authored-by: codenamenam <bluetire27@gmail.com >
2025-11-05 11:52:11 +01:00
Lê Nam Khánh
335d83ec04
Fix typo in Apple/__main__.py ( #141038 )
...
Corrected a typo in a return value docstring.
2025-11-05 15:23:25 +08:00
Clifford Gama
1ae900424b
Docs: Fix cached calls count in factorial example (gh-140882)
2025-11-05 00:29:25 +00:00
alex
fa02422918
gh-141007: update string module source code link ( #141008 )
...
In 3.14, the former string.py became `__init__.py` within a new `string` directory that also contains a new submodule file, `templatelib.py`.
2025-11-04 19:05:49 -05:00
Miro Hrončok
d5b00c74b3
gh-140454: Normalize the JIT stencils filename on Linux to avoid mismatches between the Makefile and the generator ( #140823 )
2025-11-04 14:29:15 -08:00
Petr Viktorin
d81e1ef0f3
gh-138189: Document type slots, and other constants, as part of Limited API (GH-138190)
...
Co-authored-by: Peter Bierma <zintensitydev@gmail.com >
2025-11-04 22:58:53 +01:00
Stan Ulbrych
bfe54810c4
gh-141004: Document Py_UNICODE_{HIGH, LOW}_SURROGATE functions (GH-141019)
2025-11-04 16:19:06 -05:00
Filip Łajszczak
ce1bb85d28
gh-139434: Update selected RFC 2822 references to RFC 5322 ( #139435 )
...
Update selected RFC 2822 references to RFC 5322
RFC 2822 was obsoleted by RFC 5322 in 2008. This updates references
to use the current standard in documentation, docstrings, and comments.
It preserves RFC 2822 references in legacy API components to maintain their
historical context.
RFC 822 → RFC 2822 → RFC 5322 progression is explained where relevant.
In some places specific sections of RFC are referenced where it seems helpful.
Scout rule was applied in some places and RFC mentions format was
normalized in doc strings and comments.
2025-11-04 14:46:07 -05:00
Guo Ci
97d8dda980
Docs: Fix typo in email.headerregistry.rst ( #140965 )
...
Fix missing 'Header' suffix on header class name in `email.headerregistry.rst`
2025-11-04 14:29:13 -05:00
Vinay Sajip
66c86c6563
gh-134817: Restore accidentally deleted line in documentation. (GH-141013)
2025-11-04 18:29:44 +00:00
Brett Cannon
8a7dbb7a68
Document that returning sys.monitoring.DISABLE in response to a global event raises ValueError ( #140726 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com >
2025-11-04 10:28:17 -08:00
Savannah Ostrowski
40096da95a
GH-139946: Colorize error and warning messages in argparse ( #140695 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
2025-11-04 16:31:35 +00:00
Serhiy Storchaka
1326d2a808
gh-140979: Fix off-by-one error in the RE code validator (GH-140984)
...
It was too lenient and allowed MARK opcodes with too large value.
2025-11-04 17:49:44 +02:00
Abhishek Tiwari
fa9c3eefd4
gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944)
2025-11-04 12:54:28 +02:00
Victor Stinner
a84181c31b
gh-140815: Fix faulthandler for invalid/freed frame ( #140921 )
...
faulthandler now detects if a frame or a code object is invalid or
freed.
Add helper functions:
* _PyCode_SafeAddr2Line()
* _PyFrame_SafeGetCode()
* _PyFrame_SafeGetLasti()
_PyMem_IsPtrFreed() now detects pointers in [-0xff, 0xff] range
as freed.
2025-11-04 11:48:28 +01:00
commitWithTisha
08115d241a
Fix minor typo: 'web site' -> 'website' (GH-140561)
2025-11-04 10:23:49 +01:00