Sergey B Kirpichev
68c7fad757
gh-138580: Add sys.float_info.iec_60559 boolean flag ( #138811 )
...
This value indicating support the IEC 60559 floating-point standard (the
Annex F of C99). If enabled, the float type characteristics matches the
IEC 60559 double format and exceptional cases for the math's functions
follow to the section F.10 of the C99 standard.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-03-24 11:36:15 +00:00
Parman Mohammadalizadeh
fae5761a76
gh-140196: Added constructor behavior changes in ast.rst for python 3.13 (GH-140243)
...
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
2026-03-24 01:51:31 +01:00
Petr Viktorin
1114d7f7f8
gh-108907: ctypes: Document _type_ codes (GH-145837)
...
Add `_SimpleCData._type_` docs.
Add type codes to the summary table.
Cross-link `struct`, `array`, and `ctypes`; throw in `numpy` too.
(Anyone wanting to add a code should be aware of those.)
Add `py_object`, and `VARIANT_BOOL` for completeness.
2026-03-23 13:41:38 +01:00
Stan Ulbrych
fb8d8d9c9f
Add a warning about untrusted input to configparser docs ( #146276 )
2026-03-22 19:58:31 -04:00
kangtastic
b4e5bc2164
gh-146192: Add base32 support to binascii (GH-146193)
...
Add base32 encoder and decoder functions implemented in
C to the binascii module and use them to greatly improve the
performance and reduce the memory usage of the existing
base32 codec functions in the base64 module.
2026-03-22 23:10:28 +02:00
Hugo van Kemenade
83360b5869
Docs: replace all datetime imports with import datetime as dt ( #145640 )
2026-03-21 18:02:06 +02:00
andreuu-tsai
8a531f89df
gh-138234: clarify returncode behavior for subprocesses created with shell=True ( #138536 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-03-21 12:32:28 +00:00
Sergey Miryanov
897fa231a7
GH-100108: Add async generators best practices section ( #141885 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-03-21 11:59:15 +00:00
Wulian233
5ad738f8fb
gh-91279: Note SOURCE_DATE_EPOCH support in ZipFile.writestr() doc ( #139396 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-20 16:14:25 +00:00
Petr Viktorin
b38127f3d6
gh-145916: Soft-deprecate ctypes.util.find_library (GH-145919)
...
* Put the "Loading shared libraries" section first
* Adjust formatting at the end of the section
* In "Finding shared libraries", add more text about what's going on
* Move the stub function doc for find_library into "Finding shared libraries"
* Also move the sister function, find_msvcrt. That's on the chopping block,
but not removed now.
2026-03-20 15:00:10 +01:00
Serhiy Storchaka
4507d496b4
gh-145980: Add support for alternative alphabets in the binascii module (GH-145981)
...
* Add the alphabet parameter in functions b2a_base64(), a2b_base64(),
b2a_base85(), and a2b_base85().
* And a number of "*_ALPHABET" constants.
* Remove b2a_z85() and a2b_z85().
2026-03-20 13:07:00 +02:00
Lysandros Nikolaou
847f83ef1c
gh-142518: Add thread safety notes for the buffer protocol ( #145911 )
2026-03-18 14:18:28 +01:00
Michiel W. Beijen
d42a04c045
GH-60729: Add IEEE format wave audio support (GH-145931)
...
(this re-applies reverted commit 61f2a1a599 ,
with a test fix)
Co-authored-by: Lionel Koenig <lionelk@google.com>
2026-03-18 12:46:26 +00:00
trag1c
4e96282ee4
Docs: remove unmatched parenthesis for asyncio.TaskGroup note ( #146035 )
2026-03-16 20:55:29 +01:00
Lysandros Nikolaou
2f4e4ec2e7
gh-142518: Document thread-safety guarantees of bytearray objects ( #145226 )
2026-03-15 15:57:05 +01:00
Connor Gibson
51e8acf8de
Docs: fix missing period in Doc/library/stdtypes.rst ( #145935 )
2026-03-14 10:19:00 +01:00
Petr Viktorin
747ef70faa
GH-60729: Revert "Add IEEE format wave audio support (GH-145384)" (GH-145928)
...
Revert "GH-60729: Add IEEE format wave audio support (GH-145384)"
This reverts commit 61f2a1a599 for now;
as tests fail on big-endian machines.
2026-03-13 17:51:23 +00:00
Lysandros Nikolaou
79b91e7c50
gh-142518: Document thread-safety guarantees of set objects ( #145225 )
2026-03-13 14:53:01 +01:00
Michiel W. Beijen
61f2a1a599
GH-60729: Add IEEE format wave audio support (GH-145384)
...
Co-authored-by: Lionel Koenig <lionelk@google.com>
2026-03-13 14:10:48 +01:00
Jason Yalim, PhD
f884dc6f70
gh-140715: Add %t and %n format codes support to strptime() (GH-144896)
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-03-13 14:00:39 +01:00
Lysandros Nikolaou
0dce4c6eab
gh-145254: Add thread safety annotation in docs ( #145255 )
2026-03-12 12:18:43 +05:30
Sergey B Kirpichev
ce1abaf9b8
gh-99875: Document rounding mode for old-style formatting ( #126382 )
2026-03-11 14:25:24 +01:00
Stan Ulbrych
eb9ae65e5b
Warn that overriding __builtins__ for eval is not a security mechanism (GH-145773)
...
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2026-03-11 13:29:43 +01:00
Cody Maloney
cf7c67b7c6
gh-101100: Fix sphinx reference warnings around I/O ( #139592 )
...
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2026-03-11 10:02:23 +02:00
Hugo van Kemenade
7fbdc8fb54
Merge branch 'main' of https://github.com/python/cpython
2026-03-10 16:41:02 +02:00
Adorilson Bezerra
9585f509d7
gh-106318: Add examples for str.isspace() docs ( #145399 )
2026-03-10 16:19:24 +02:00
Hugo van Kemenade
6024d3c6da
Python 3.15.0a7
2026-03-10 14:31:15 +02:00
Yashraj
171133aa84
gh-141617: clarify concurrent.futures.ThreadPoolExecutor deadlock example ( #141620 )
...
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-03-09 16:30:00 +00:00
Maciej Olko
fc03cdccc0
gh-139588: Docs: fix PDF build ( #145480 )
2026-03-09 18:19:02 +02:00
Petr Viktorin
d64f83d07b
gh-78773: Improve ctypes dynamic library loading docs (GH-145313)
2026-03-09 15:02:06 +01:00
Andrew Barnes
b28e5f58eb
gh-69223: Document that add_argument() returns an Action object ( #145538 )
2026-03-06 16:10:12 +00:00
Hugo van Kemenade
d3b6faf975
Docs: import datetime as dt in examples ( #145315 )
2026-03-06 13:18:11 +02:00
Victor Stinner
4fce98a920
gh-141510: Change marshal version to 6 ( #145551 )
...
Fix SliceTestCase: test also that version 4 fails with ValueError.
2026-03-06 10:23:11 +01:00
Victor Stinner
37e421bb43
gh-141510: Complete What's New in Python 3.15 for frozendict ( #145537 )
...
Mention updated stdlib modules and built-in functions.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-03-05 17:44:58 +01:00
Victor Stinner
7bdfce0d3a
gh-145056: Accept frozendict in xml.etree ( #145508 )
...
Element and SubElement of xml.etree.ElementTree now also accept
frozendict for attrib.
Export _PyDict_CopyAsDict() function.
2026-03-05 12:55:28 +01:00
Victor Stinner
c0ecf211b2
gh-145055: Accept frozendict for globals in exec() and eval() ( #145072 )
2026-03-05 12:35:43 +01:00
Justin Kunimune
dc12d1999b
Fix incorrect statement about argparse.ArgumentParser.add_argument() ( #145479 )
...
Co-authored-by: Savannah Ostrowski <savannah@python.org>
2026-03-03 21:41:26 +00:00
Victorien
34df70c83c
Reference memoryview.tolist as a method ( #145412 )
2026-03-03 16:05:14 +00:00
Victor Stinner
52c8efa87d
gh-145335: Fix os functions when passing fd -1 as path ( #145439 )
...
os.listdir(-1) and os.scandir(-1) now fail with OSError(errno.EBADF)
rather than listing the current directory.
os.listxattr(-1) now fails with OSError(errno.EBADF) rather than
listing extended attributes of the current directory.
2026-03-03 13:57:08 +01:00
Michiel W. Beijen
db41717cd5
GH-145450: Document missing wave.Wave_write getter methods (GH-145451)
2026-03-03 13:44:56 +01:00
C.A.M. Gerlach
9124bc194a
Hide "object" prefix on dunders in contextlib docs & selectivly link some more ( #145436 )
2026-03-02 23:10:26 +02:00
Thomas A Caswell
201d251567
DOC: clarify and expand documentation about PYTHONUSERBASE and PYTHONNOUSERSITE ( #144637 )
2026-03-02 15:54:26 +00:00
edson duarte
6c417e44c9
gh-140715: Improve class reference links on datetime.rst ( #123980 )
...
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-03-01 13:59:02 +02:00
Jelle Zijlstra
3484ef6003
gh-145033: Implement PEP 747 ( #145034 )
2026-02-28 19:52:04 -08:00
Zachary Ware
f1446d3922
Destroy the turtle window after its doctests finish (GH-125294)
2026-02-28 21:12:05 +00:00
Nathan Goldbaum
fdb4b3527f
gh-145269: simplify bisect.bisect doc example ( #145270 )
...
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
---------
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2026-02-28 09:09:39 +00:00
Rajhans Jadhao
e234662f7f
gh-144190: Clarify get_type_hints() instance behavior in docs ( #144831 )
2026-02-26 15:47:13 +02:00
Adorilson Bezerra
aa2c0c3acb
gh-106318: Add examples for str.rjust() method ( #143890 )
2026-02-26 15:41:49 +02:00
Lysandros Nikolaou
017ccd3bf4
gh-142518: Move thread safety sections into a new page ( #144716 )
...
- Create a new page for thread safety notes for built-in types
- Move thread safety notes for `list` into the new page
- Move thread safety notes for `dict` into the new page
---------
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-25 16:49:46 +01:00
Tadej Magajna
12828e5f98
gh-85809: Ensure shutil.make_archive accepts path-like objects in all cases (GH-143668)
2026-02-25 16:44:17 +02:00