Kumar Aditya
ce753517a8
gh-86513: improve docs of loop.call_exception_handler ( #132466 )
2025-04-13 21:39:24 +00:00
Tomas R.
887eabc5a7
gh-132435: Test syntax warnings in a finally block (GH-132436)
2025-04-13 20:44:00 +00:00
Yuki Kobayashi
fc7e4e7bbd
gh-101100: Fix sphinx warnings in library/plistlib.rst
( #132422 )
2025-04-13 18:35:26 +00:00
Tapeline
281fc338fd
gh-132111: Document dataclasses.InitVar ( #132446 )
2025-04-13 12:47:44 -04:00
Serhiy Storchaka
1d97488c95
gh-132099: Fix documentation for the BTPROTO_HCI protocol (GH-132118)
2025-04-13 18:39:22 +03:00
Furkan Onder
c7f6535e4a
gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions (GH-131625)
...
Fix recursive limit assertions on NetBSD for posix_spawn.
2025-04-13 14:06:38 +03:00
Case Zumbrum
00cf5eacc5
gh-129169: update asyncio.ensure_future
docs to suggest taskgroups
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-04-13 07:59:22 +00:00
Pieter Eendebak
9d127e83b9
gh-123471: Make concurrent iteration over itertools.repeat safe under free-threading ( #131247 )
2025-04-13 13:26:58 +05:30
Charles Machalow
5863cd70b8
gh-132106: Ensure that running logging.handlers.QueueListener
cannot be started again (GH-132444)
...
Prevents a thread leak
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-13 08:53:13 +01:00
Felix Scherz
64b066ad29
gh-132354: document return value for asyncio.Task.cancel
( #132374 )
2025-04-13 13:05:44 +05:30
Yongzi Li
f69b344e09
Fix a typo in c-api/typeobj.rst ( #132317 )
2025-04-13 07:18:58 +00:00
Yongzi Li
03b18e0d8c
Docs: Fix a typo in Doc/c-api/unicode.rst
( #132318 )
2025-04-13 07:16:59 +00:00
Serhiy Storchaka
718d234e40
gh-132429: Remove not working test for Bluetooth socket (GH-132459)
2025-04-12 22:35:28 +00:00
Serhiy Storchaka
f2f86d3f45
gh-132429: Fix support of Bluetooth sockets on NetBSD and DragonFly BSD (GH-132431)
...
* Also add support for cid and bdaddr_type in the BTPROTO_L2CAP address on FreeBSD.
* Return cid in getsockname() for BTPROTO_L2CAP if it is not zero.
* Fix a compiler warning on FreeBSD.
2025-04-12 23:57:34 +03:00
Bénédikt Tran
9634085af3
gh-132388: Increase test coverage for HMAC ( #132389 )
...
- Correctly test missing `digestmod` and `digest` parameters.
- Test when chunks of length > 2048 are passed to `update()`.
- Test one-shot HMAC-BLAKE2.
2025-04-12 17:43:11 +00:00
Serhiy Storchaka
842ab81517
gh-132185: Speed up expanduser() test with large password database (GH-132231)
...
Use only a limited number of randomly selected entries.
2025-04-12 16:17:52 +00:00
da-woods
1e5798e372
Docs: Fix specifications of gcvisitobjects_t
( #132433 )
...
`gcvisitobjects_t` callbacks should return 1 for the iteration to continue instead of 0.
2025-04-12 17:36:02 +02:00
Adorilson Bezerra
891465fc7a
gh-58211: Add tests for the __self__
attribute of builtins functions ( #113575 )
...
---------
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-04-12 12:02:43 +00:00
Charles Machalow
517e96b9ed
gh-132106: Allow logging.handlers.QueueListener
to be used as a context manager ( #132107 )
2025-04-12 12:00:04 +00:00
Stan Ulbrych
ad3bbe8fbc
gh-123441: Update Belorussian spelling (GH-132409)
2025-04-12 13:36:01 +03:00
Tomas R.
3d08c8ad20
gh-131927: Prevent emitting optimizer warnings twice in the REPL ( #131993 )
2025-04-12 11:34:36 +01:00
Serhiy Storchaka
d4e2cdc15b
gh-125434: Fix building on OpenBSD (GH-132393)
...
pthread_get_name_np is defined in pthread_np.h.
2025-04-12 11:25:35 +03:00
Bénédikt Tran
a81232c769
gh-132399: fix invalid function signatures on the free-threaded build ( #132400 )
2025-04-12 07:46:33 +00:00
Maksim
292a7248cd
gh-131290: ensure that test files can be executed as standalone scripts ( #131371 )
...
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-12 07:46:19 +00:00
Nicolas Trangez
2aab2db146
GH-132417: ctypes: Fix potential Py_DECREF(NULL)
when handling functions returning PyObject *
( #132418 )
...
Some functions (such as `PyErr_Occurred`) with a `restype` set to `ctypes.py_object` may return NULL without setting an exception.
2025-04-12 07:40:34 +00:00
Bénédikt Tran
e0dffc54b8
gh-132097: fix runtime UB when calling expat handlers ( #132265 )
2025-04-12 09:20:11 +02:00
Bénédikt Tran
e1f93ff484
gh-132097: skip tests raising an explicit SIGSEV when UB sanitizer is on ( #132398 )
2025-04-12 09:18:58 +02:00
Kumar Aditya
05d27a84f4
gh-130322: drop deprecation of asyncio.set_event_loop
( #132349 )
2025-04-12 12:03:52 +05:30
Tomas R.
e6ef47ac22
gh-132386: Fix a crash when passing a dict subclass to exec
(GH-132412)
...
* Fix crash when passing a dict subclass to exec
* Add news entry
2025-04-12 05:05:03 +08:00
Xuehai Pan
deda47d6e1
Add `.yaml
to
.editorconfig
` ( #132410 )
2025-04-11 19:23:13 +01:00
Serhiy Storchaka
e5f8b2c703
gh-85302: Add support for BTPROTO_SCO on FreeBSD (GH-131981)
...
BTPROTO_SCO has been supported on FreeBSD since 2008.
2025-04-11 19:38:17 +03:00
Xuehai Pan
26ae05e95c
gh-127405: Add ABIFLAGS to sysconfig variables on Windows (GH-131799)
2025-04-11 16:19:03 +01:00
Bénédikt Tran
9ded6f0830
gh-111178: fix incorrect function signatures in docs ( #132395 )
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-04-11 14:59:38 +00:00
Karolina Surma
3e1a47bdb4
gh-132356: Find the correct group name in test_group_no_follow_symlinks ( #132357 )
...
Find the correct group name in test_group_no_follow_symlinks
2025-04-11 15:58:39 +01:00
Bénédikt Tran
f23052591a
CI: Update outdated references to Python version and GH issues ( #132394 )
2025-04-11 14:46:33 +00:00
Collin Funk
1b49c8c71b
gh-131127: Minimal build support on systems using LibreSSL (GH-131128)
2025-04-11 15:35:12 +03:00
Mark Shannon
d87e7f3529
GH-127682: Only call __iter__
once in generator expressions. (GH-132351)
2025-04-11 09:37:22 +01:00
Ken Jin
bc0b94b30c
gh-132257: Remove -flto-partition=none for Linux LTO builds (GH-132258)
...
Change the default LTO flags on GCC to not pass -flto-partition=none, and allow parallelization of LTO. This has a multiple factor speedup for LTO build times on GCC, with no noticeable loss in performance.
On newer make and newer GCC, this passes the jobserver automatically to GCC (or more like GCC grabs it from the env vars).
On older make, this will have benign warnings about serial compilation. It's safe to ignore them.
2025-04-11 16:06:05 +08:00
Jelle Zijlstra
07b8d3117f
gh-132261: Store annotations at hidden internal keys in the class dict ( #132345 )
2025-04-10 21:13:26 -07:00
Chris Eibl
e5f68fd29b
GH-131296: Suppress "unused label" warning for clang-cl closer to actual occurrence (GH-131900)
2025-04-10 23:17:33 +01:00
Barney Gale
66cdb2bd8a
GH-123599: url2pathname()
: handle authority section in file URL ( #126844 )
...
In `urllib.request.url2pathname()`, if the authority resolves to the
current host, discard it. If an authority is present but resolves somewhere
else, then on Windows we return a UNC path (as before), and on other
platforms we raise `URLError`.
Affects `pathlib.Path.from_uri()` in the same way.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-10 19:58:04 +00:00
Stan Ulbrych
a214db0c54
gh-132307: Remove unnecessary check in asyncio/base_events.py
( #132324 )
2025-04-10 15:41:32 +00:00
Serhiy Storchaka
1557da622c
gh-106482: Clarify documentation of character set in RE ( #106517 )
...
Co-authored-by: Martin Panter <vadmium@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-10 16:41:41 +03:00
Jiayu Yi
5fbe23ee4e
Fix example code in curses tutorial ( #126446 )
2025-04-10 15:06:38 +03:00
Chu
3d83c1ec61
Fix a typo in Python/pylifecycle.c ( #132350 )
2025-04-10 17:27:37 +05:30
Tomas R.
4d58c8cb24
gh-130320: gettext: Test fallback translations (GH-130321)
2025-04-10 14:56:21 +03:00
Liam DeVoe
4a88bbacb3
Docs: Add a missing trailing full stop ( #130561 )
2025-04-10 14:51:20 +03:00
sobolevn
fcf2d07228
gh-132316: Require socket
and GITHUB_TOKEN
env to use GitHubArtifactDatabase
( #132348 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-10 14:30:58 +03:00
180909
65357032e8
gh-72631: Fix wrong documentation for GzipFile.peek ( #29820 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
2025-04-10 14:21:32 +03:00
Tomas R.
b6760b7fa5
gh-130453: pygettext: Allow specifying multiple keywords with the same function name (GH-131380)
2025-04-10 11:06:40 +00:00