Commit graph

131595 commits

Author SHA1 Message Date
sobolevn
90c1d86f34
gh-149609: Raise deprecation warnings for abc.{abstractclassmethod,abstractstaticmethod,abstractproperty} (#149636) 2026-05-31 07:26:52 +00:00
Patrick Rauscher
73d8e9a47c
gh-117291: Explain usage of null bytes in Array(c_char).value (GH-117292) 2026-05-31 10:20:49 +03:00
Paper Moon
0f1f7c7889
gh-141444:fix broken URLs and examples in urllib.request.rst (#144863)
* Doc: fix broken URLs and examples in urllib.request.rst (gh-141444)

* Doc: update urllib.request examples to handle gzip compression

---------

Co-authored-by: Senthil Kumaran <senthil@python.org>
2026-05-30 19:08:18 -07:00
Itamar Oren
61ec3c2065
Add @itamaro to CODEOWNERS (#150635)
Added myself as a code owner across CI and build-system areas
2026-05-30 13:49:11 -07:00
Thomas Kowalski
56bd9ea676
gh-150372: Add missing null check on completer_word_break_characters in readline.c (GH-150251) 2026-05-30 19:26:05 +00:00
Joshix-1
af10734907
gh-150524: Remove outdated note in binascii.a2b_hex() documentation (GH-150525)
bytes.fromhex() accepts ASCII bytes and bytes-like objects as input since 3.14
2026-05-30 19:18:39 +00:00
Gustaf
2c20f9ce17
gh-123138: Updated email.headerregistry docs to include required keyword parse_tree (GH-134450) 2026-05-30 20:59:42 +03:00
Thomas Kowalski
1e18c45495
gh-150406: Check result of PyThread_allocate_lock() for netdb_lock (GH-150407) 2026-05-30 16:25:40 +00:00
Dhruv Singla
9baa7c63be
gh-129851: Fix the documentation for -m command (GH-129862) 2026-05-30 15:47:14 +00:00
Brij Kapadia
f586fd9e30
gh-144774: Add critical section in BaseException.__setstate__ (#150578) 2026-05-30 21:07:27 +05:30
Jean-François B.
25a5d874f2
Remove unneeded LaTeX code from latex_elements['preamble'] (GH-124630)
It was a workaround for Sphinx < 1.5.
2026-05-30 15:19:56 +00:00
Fang Li
6ecd197c03
gh-109503: Fix document for shutil.move() on usage of os.rename() since it's inaccurate (GH-109507)
Nonatomic move might be used even if the files are
on the same filesystem in some cases.
2026-05-30 14:26:03 +00:00
Neil Schemenauer
62a45fa91c
gh-135898: Add section to free-threading howto about memory usage (#143279)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-05-30 10:41:33 +00:00
Tomi Belan
6d7a19e533
gh-121109: Fix performance of tarfile reading with "r|*" (GH-121296) 2026-05-30 09:23:50 +00:00
Jonathan Dung
678fd8452c
gh-150501: Correct inspect.getattr_static docs signature (#150504) 2026-05-30 11:18:25 +02:00
Serhiy Storchaka
1c7011d8fe
gh-150560: Fix crash in XML parser on invalid XML with multi-byte encoding (GH-150568) 2026-05-30 00:23:32 +03:00
Serhiy Storchaka
bcd29e466f
gh-149489: Fix ElementTree serialization to HTML (GH-149490)
* The content of comments, processing instructions and elements "xmp",
  "iframe", "noembed", "noframes", and "plaintext" is no longer escaped.
* The "plaintext" element no longer have the closing tag.
* Add support of empty attributes (with value None).
2026-05-30 00:04:50 +03:00
Thomas Kowalski
f87d9605d3
gh-149056: Properly pass array_hook in json.load() to json.loads() (GH-149057) 2026-05-29 22:53:21 +03:00
Oral Ersoy Dokumacı
779694faba
gh-150403: Document frozendict in language reference Mappings section (GH-150404) 2026-05-29 22:40:22 +03:00
esadomer
26696a65f9
gh-132372: Speed up logging.config existing logger handling (GH-150242)
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2026-05-29 16:50:05 +01:00
Stan Ulbrych
5535c1f9c0
Add a security warning about pydoc's HTTP server (#150409) 2026-05-29 13:29:59 +01:00
Langyan
13fee461c2
Fix typos in InternalDocs/compiler.md (#149915) 2026-05-29 15:44:20 +05:30
pengyu lee
686996e4d8
gh-150454: Fix wrong-interpreter return in import_run_extension error path (#150455) 2026-05-29 15:33:37 +05:30
kodsurfer
6ac4dc8fc9
gh-150345: Fix incorrect reference in BaseSelectorEventLoop docstring (#150538) 2026-05-29 15:24:58 +05:30
Grant Herman
c72d5ea638
gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (#150270)
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-05-29 15:10:57 +05:30
Bartosz Sławecki
1d4e965829
gh-148587: Make sys.lazy_modules match PEP and keep internal lazy submodules tracking internal (#150086)
Make sys.lazy_modules match PEP and keep internal lazy submodules tracking internal

Co-authored-by: Dino Viehland <dinoviehland@meta.com>
2026-05-28 17:55:47 -07:00
Rafael Weingartner-Ortner
baf11a4e9a
gh-139398: [Enum] Add supported sunder names to __dir__ for REPL completions (GH-139985)
* Add supported sunder names to Enum `__dir__`

This change adds the sunder names `_generate_next_value_`
and `_missing_` to the `__dir__` method of `EnumType` and `Enum`.
In Addition, The instance level sunder names
`_add_alias_` and `_add_value_alias_` are added to `Enum.__dir__`.

With the sunder names exposed in the `dir()` method,
the REPL autocomplete will also show them.

---------

Co-authored-by: SimonGPrs <107691772+SimonGPrs@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2026-05-28 12:55:38 -07:00
Pradyun Gedam
ef2246f788
gh-150046: Fix test_add_python_opts to ignore PYTHON* env vars (#150089)
Avoid the runtime environment from affecting the tests' behaviours,
which notably checks the warning filters which can be controlled by
various PYTHON environment variables.
2026-05-28 18:48:51 +02:00
Chien Wong
cf2cd0be82
gh-115988: Add ARM64 and RISCV BCJ filters constants in lzma module (GH-115989)
---------

Signed-off-by: Chien Wong <m@xv97.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2026-05-28 08:05:03 -07:00
Armaan Sandhu
f386f1feed
gh-150311: Fix minor issues in configure.ac for Cygwin (#150328)
- Use 'CYGWIN' (uppercase) for ac_sys_system to match the casing used
  in all case-pattern references throughout configure.ac.
- Fix LDLIBRARY for static builds: use '.a' extension instead of
  '.dll.a' when shared libraries are disabled.
- Replace hardcoded 'gcc' and 'g++' with '$(CC)' and '$(CXX)' in
  LDSHARED/LDCXXSHARED for Cygwin.

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-05-28 14:38:39 +02:00
manoj-marimuthu
8a22450ac6
Fix docs for PyThreadState_GetDict() in threads.rst (#150401) 2026-05-28 12:13:58 +00:00
Sergey B Kirpichev
b6bae536ef
gh-85989: Add skip_if_double_rounding to test.support (#150219)
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-05-28 13:42:39 +02:00
Neko Asakura
39bd44fc70
gh-148871: make LOAD_COMMON_CONSTANT use immortal stackref borrows (GH-149625) 2026-05-28 12:27:37 +01:00
Neil Schemenauer
2531cd337b
Update qsbr.md doc to be more accurate (#148537) 2026-05-28 16:00:22 +05:30
Stan Ulbrych
b53f6ca850
Add prominent crash warning to ctypes docs (GH-150410)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-05-28 10:13:14 +02:00
Adam Johnson
9242700c14
gh-149029: Update SQLite to 3.53.1 for binary releases (#149767) 2026-05-27 18:03:34 -04:00
Serhiy Storchaka
24c6bbc92b
gh-84353: Preserve non-UTF-8 filenames when appending to ZipFile (GH-150091)
Preserve non-UTF-8 filenames when appending to a ZipFile.

---------

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2026-05-27 17:56:38 +00:00
Petr Viktorin
d8ff4f8e56
gh-141984: Remove accidental merge markers (GH-150517) 2026-05-27 14:20:50 +00:00
Petr Viktorin
55f2518326
gh-141984: Reword docs on "enclosed" atom grammar (GH-148622)
Reorganize and reword the docs on atoms in parentheses, brackets and braces:
parenthesized groups, list/set/dict/tuple displays, and comprehensions.
(Generator expressions and yield atoms are left for later.)

In the spirit of better matching the underlying grammar, *comprehensions* are
covered separately from non-comprehension displays. Also, parenthesized forms
(with a single expression) and tuple displays are separated.
All sections are rewritten to start with simple cases and build up to the full
formal grammar.

Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-05-27 14:32:33 +02:00
Pablo Galindo Salgado
638754cb85
gh-150389: Make perf profiler tests resilient (#150437) 2026-05-27 13:22:56 +01:00
Ivy Xu
99c254e2f7
gh-149861: Fix rule in match statement case_block PEG grammar (GH-149908) 2026-05-27 12:25:21 +02:00
Serhiy Storchaka
7de4fcd445
gh-149571: Fix the C implementation of Element.itertext() (GH-149929)
It no longer emits text for comments and processing instructions.
2026-05-27 13:23:28 +03:00
Victor Stinner
776573c9f0
gh-149879: Fix test_grp on Cygwin (#150495) 2026-05-26 21:16:16 +00:00
Serhiy Storchaka
8ab7b43a14
gh-62259: Add support of multi-byte encodings in the XML parser (GH-149860)
Supported encodings: "cp932", "cp949", "cp950", "Big5","EUC-JP",
"GB2312", "GBK", "johab", and "Shift_JIS".

Partially supported encodings (only BMP characters): "Big5-HKSCS",
"EUC_JIS-2004", "EUC_JISX0213", "Shift_JIS-2004", "Shift_JISX0213",
"utf-8-sig" and non-standard aliases like "UTF8" (without hyphen).

The parser now raises ValueError for known unsupported
multi-byte encodings such us "ISO-2022-JP" or "raw-unicode-escape"
instead of failing later, when encounter non-ASCII data.
2026-05-26 19:40:25 +00:00
deadlovelll
a34edf7446
gh-150486: Remove dead _buffer_factory attribute from _SelectorDatagramTransport (#150487) 2026-05-27 00:37:27 +05:30
Serhiy Storchaka
5e467f4331
gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in email (GH-149959) 2026-05-26 21:52:47 +03:00
Victor Stinner
90bf681df1
gh-149879: Fix test_embed on Cygwin (#150441) 2026-05-26 16:33:08 +00:00
Victor Stinner
bc235304df
gh-149879: Fix test_venv on Cygwin (#150483)
In copy mode, venv now also copies the cygpython DLL.

Fix test_zippath_from_non_installed_posix(): copy also the cygpython
DLL.
2026-05-26 18:32:13 +02:00
Clément Péron
1310d2c252
gh-148557: Use em-config to locate trampoline clang (#148556)
When CC is wrapped by ccache, the Emscripten trampoline rule cannot derive the
matching clang path by treating CC as a single executable path. Query the active
LLVM toolchain path with em-config instead.
2026-05-26 08:57:08 -07:00
Mark Shannon
a6793662e7
GH-126910: Make _Py_get_machine_stack_pointer return the actual stack pointer (GH-149103)
* Make _Py_ReachedRecursionLimit inline again
* Remove _Py_MakeRecCheck replacing its use with _Py_ReachedRecursionLimit
* Move the check for C stack swtiching into _Py_CheckRecursiveCall
2026-05-26 15:14:17 +01:00