Taegyun Kim
ffaec6e2a1
gh-128042: Emit a `configure warning when -O0 and --enable-optimizations` are combined ( #137975 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-08-27 01:00:43 +02:00
Kumar Aditya
5ae8b97f6b
enhance docs for critical sections ( #137334 )
2025-08-26 22:43:02 +05:30
Rani Pinchuk
fd8f42d3d1
gh-135427: Fix DeprecationWarning for os.fork when run in threads with -Werror (GH-136796)
...
Don't ignore errors raised by `PyErr_WarnFormat` in `warn_about_fork_with_threads`
Instead, ignore the warnings in all test code that forks. (That's a lot of functions.)
In `test_support`, make `ignore_warnings` a context manager (as well as decorator),
and add a `message` argument to it.
Also add a `ignore_fork_in_thread_deprecation_warnings` helper for the deadlock-in-fork
warning.
2025-08-26 15:33:21 +02:00
Jakub Kulík
f60f8225ed
gh-137481: Fix test_calendar on Solaris and OpenIndiana (GH-138156)
...
In some locales (e.g. pt_PT.UTF-8), the abbreviated weekday names
are longer than three character.
2025-08-26 14:21:09 +03:00
Krishna Chaitanya
43b113d23d
gh-138148: Fix grammatical error in the asynchronous generator iterator term (GH-138155)
2025-08-26 07:13:33 -04:00
Bénédikt Tran
1700cc4d76
gh-136565: use SHA-256 for hashlib.__doc__ example instead of MD5 ( #138157 )
2025-08-26 10:38:53 +00:00
Petr Viktorin
ce1a877a38
gh-138143: Allow anonymous unions in public headers, using _Py_ANONYMOUS (GH-137283)
...
We already use an anonymous union for PyObject. This makes the workarounds available in all public headers:
- MSVC: `__pragma(warning(disable: 4201))` (with push/pop). Warning 4201 is specifically for anonymous unions, so let's disable for all of `<Python.h>`
- GCC/clang, pedantic old C standards: define `_Py_ANONYMOUS` as `__extension__`
- otherwise, define `_Py_ANONYMOUS` as nothing
(Note that this is only for public headers -- CPython internals use C11, which has anonymous structs/unions.)
C API WG vote: https://github.com/capi-workgroup/decisions/issues/74
2025-08-26 11:14:35 +02:00
Adam Turner
73fb155ba7
Introduce a structure for `.github/CODEOWNERS` ( #137498 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-08-26 03:34:07 +02:00
Chris Eibl
95d6e0b283
GH-131033: Enable the optimizing macros UNLIKELY and LIKELY for Clang (GH-131019)
...
This includes clang-cl on Windows, which does not define the GCC version that was previously being checked.
2025-08-25 21:59:52 +01:00
PrinceNaroliya
9ee0214b5d
gh-138098: Clarify strong references in PyDict_Next docs on the free-threaded build (GH-138106)
2025-08-25 10:53:26 -04:00
Wulian233
81268a3e2a
gh-136507: Fix mimetypes CLI to handle multiple file parameters (GH-136508)
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-08-25 16:38:43 +02:00
maurycy
edf6e6819b
Remove some dead code from gzip and tarfile ( #138123 )
...
The original_n variable and the writebuf and bufsize attributes were never used.
2025-08-25 16:23:47 +03:00
Stan Ulbrych
a5530656c1
gh-133390: Extend completion for .commands in sqlite3 (GH-135432)
2025-08-25 14:58:00 +02:00
Serhiy Storchaka
b8c90e72b3
gh-137609: Change names of some positional-only parameters in builtins (GH-137611)
...
This is for a pair with GH-137610.
2025-08-25 15:36:06 +03:00
Serhiy Storchaka
65fb4d11a0
gh-137609: Update signatures of builtins in the documentation (GH-137610)
...
Show signatures that match the actual signatures or future multisignatures
for all functions, classes and methods in the "builtins" module.
2025-08-25 15:28:27 +03:00
Sergey Miryanov
5baa7a0de0
gh-95245: Document Py_TPFLAGS_PREHEADER (GH-135861)
...
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-08-25 12:15:51 +02:00
Yongzi Li
be24ff0b57
gh-138081: Fix/remove incorrect links in idlelib/HISTORY.txt ( #138091 )
2025-08-24 21:48:29 -04:00
Brian Schubert
f57be7b2b3
gh-136021: Remove dead code for internal sentinel in typing ( #138120 )
...
Remove dead code for internal sentinel
2025-08-24 20:36:35 +00:00
Bénédikt Tran
96b7a2eba4
gh-135261: bring back CI job for testing OpenSSL 1.1.1w ( #135262 )
...
This partially reverts commit d83e30cadd
by bringing back the CI job for testing OpenSSL 1.1.1w. Despite this
version being upstream EOL, the rationale for keeping it as follows:
- It most resembles other 1.1.1-work-a-like ssl APIs supported by important vendors.
- Python officially requires OpenSSL 1.1.1 or later, although OpenSSL 3.0 or later
is recommended for cryptographic modules. Since changing the build requirements
requires a transition period, we need to keep testing the allowed versions.
- The code base still contains calls to OpenSSL functions that are deprecated since
OpenSSL 3.0 as well as `ifdef` blocks constrained to OpenSSL 1.1.1.
2025-08-24 09:01:37 +00:00
Serhiy Storchaka
aa1dbd4dde
gh-137986: Fix and improve the csv functions docstrings (GH-137987)
...
The csv.register_dialect() docstring no longer imply that it returns a
dialect.
All functions have now signatures.
Co-authored-by: maurycy <5383+maurycy@users.noreply.github.com>
2025-08-24 11:13:31 +03:00
Raymond Hettinger
6fcac09401
Improve readability by adding whitespace between code paragraphs (gh-138090)
...
Improve readability by adding whitespace between code paragraphs.
2025-08-23 15:18:46 +00:00
Bénédikt Tran
ab1bef8ad2
gh-136134: restore truncated comment post GH-136623 ( #138088 )
...
This amends 766614f88a
where a comment has been incorrectly truncated.
2025-08-23 10:17:14 +00:00
Serhiy Storchaka
6620ef0ff6
gh-137754: Fix import of zoneinfo if _datetime is not available (GH-137845)
...
Both modules should use the Python implementation in that case.
2025-08-23 12:12:13 +03:00
Kentaro Jay Takahashi
282e88506b
gh-133125: Clarify ZipInfo.date_time attribute documentation ( #136082 )
...
Specifically, clarify that ZipInfo.date_time pulls the datetime information from the central directory, and that times are interpreted as local time.
Co-authored-by: Emma Smith <emma@emmatyping.dev>
2025-08-22 16:52:30 -07:00
Robin Narsingh Ranabhat
90b932e650
gh-137740: Clarify __del__ invocation mechanism in reference counting ( #137741 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-08-23 00:49:55 +05:30
Krishna Chaitanya
f278afcabf
gh-91116: Add hyperlink from sys.settrace to frame objects (GH-138062)
2025-08-22 12:28:33 -04:00
Kumar Aditya
b9bcd02e9f
gh-137384: fix crash when accessing warnings state late in runtime shutdown ( #138027 )
2025-08-22 19:10:43 +05:30
Serhiy Storchaka
5b0f00e616
gh-135386: Skip readonly tests for the root user (GH-138058)
2025-08-22 16:22:14 +03:00
Ken Jin
8952b826a7
gh-138042: Fix homebrew for tail-calling macOS CI (GH-138043)
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-08-22 20:15:40 +08:00
Bénédikt Tran
766614f88a
gh-136134: smtplib: fix CRAM-MD5 on FIPS-only environments ( #136623 )
2025-08-22 11:45:01 +00:00
General_K1ng
c0ae92b7c0
gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566)
...
Add immutable=1 flag for read-only SQLite access to avoid WAL/SHM errors on readonly DB.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-08-22 14:11:59 +03:00
Pranjal Prajapati
f27af8ba8e
gh-130425: Add "Did you mean [...]" suggestions for del obj.attr (GH-136588)
...
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-08-22 12:21:16 +02:00
Bénédikt Tran
4519b8acb5
gh-136134: imaplib: fix CRAM-MD5 on FIPS-only environments ( #136615 )
2025-08-22 12:08:55 +02:00
Bénédikt Tran
e545bae55a
gh-134531: simplify code for computing HMAC digests ( #138046 )
2025-08-22 09:19:04 +00:00
yihong
531fc3a7a3
gh-138019: improve help message for json.tool ( #138037 )
2025-08-22 08:44:25 +00:00
vict-Yang
ce70a57bc0
gh-137920: Fix semantically relevant typo in curses.window.attron ( #137940 )
2025-08-22 10:27:02 +02:00
Hugo van Kemenade
5a7f5ea631
gh-123299: Fix typos & grammar and copyedit What's New in 3.14 ( #138040 )
2025-08-22 08:33:29 +01:00
Russell Keith-Magee
2ba2287b85
gh-137973: Add a non-parallel test plan to the iOS testbed project ( #138018 )
...
Modifies the iOS testbed project to add a test plan. This simplifies the iOS
test runner, as we can now use the built-in log streaming to see test results.
It also allows for some other affordances, like providing a default LLDB config,
and using a standardized mechanism for specifying test arguments.
2025-08-22 13:11:50 +08:00
Sergey B Kirpichev
bb8791c0b7
gh-73487: Convert `_decimal` to use Argument Clinic (part 5) ( #137948 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-08-21 23:12:17 +01:00
Adam Turner
79aeeb880e
GH-132775: Fix argument parsing for `_interpqueues.put()` ( #137686 )
2025-08-22 00:00:58 +02:00
sobolevn
ba8e20b5f2
gh-137967: Fix "Whats New" doc example ( #138028 )
2025-08-21 17:48:40 +00:00
Pablo Galindo Salgado
539a4ca1b9
gh-137967: Restore suggestions on nested attribute access ( #137968 )
2025-08-21 16:56:57 +01:00
Terry Jan Reedy
339f5da639
gh-138011: Clarify tutorial method object example code ( #138014 )
...
x must be a MyClass instance for examples to work.
---------
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-08-21 11:02:29 -04:00
Petr Viktorin
9f05f98730
gh-137376: Add note on top-level global declarations (GH-137707)
...
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
2025-08-21 14:58:38 +02:00
Mark Shannon
a8d9d94784
GH-137959: Replace shim code in jitted code with a single trampoline function. (GH-137961)
2025-08-21 10:40:53 +01:00
Sergey B Kirpichev
c056a089d8
gh-73487: Convert `_decimal` to use Argument Clinic (part 4) ( #137931 )
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-08-20 22:59:40 +01:00
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