Commit Graph

125463 Commits

Author SHA1 Message Date
Sam Gross 1a8082a4bf
gh-117657: Add test_thread_local_bytecode to TSAN tests (gh-129753)
Skip `test_no_copies_if_tlbc_disabled` when run under TSAN for now
due to a data race on the adaptive counter (see gh-129752).
2025-02-11 16:54:32 -05:00
Sam Gross f151d27159
gh-117657: Enable test_opcache under TSAN (GH-129831)
Fix a few thread-safety bugs to enable test_opcache when run with TSAN:

 * Use relaxed atomics when clearing `ht->_spec_cache.getitem`
   (gh-115999)
 * Add temporary suppression for type slot modifications (gh-127266)
 * Use atomic load when reading `*dictptr`
2025-02-11 16:53:08 -05:00
Sam Gross ed816f1a70
Remove trailing whitespace in Lib/pydoc_data/topics.py (#130014) 2025-02-11 23:28:28 +02:00
Michael Droettboom 00ec781877
gh-129244: Only remove the workaround when MSVC has the bugfix (#130011) 2025-02-11 14:49:42 -05:00
Hugo van Kemenade 53e8e72dab Merge branch 'main' of https://github.com/python/cpython 2025-02-11 21:29:11 +02:00
Hugo van Kemenade 1c1190ac29 Post 3.14.0a5 2025-02-11 21:26:52 +02:00
Tomas R. aa81a6f6e4
gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` (GH-129855) 2025-02-11 11:04:16 -08:00
Hugo van Kemenade 3ae9101482 Python 3.14.0a5 2025-02-11 19:16:29 +02:00
Ken Jin 5cdd6e5e75
gh-130004: Disable PGO for ceval.c on MSVC for default build (GH-130009)
Disable PGO for ceval.c on MSVC on default build
2025-02-12 01:13:05 +08:00
Sam Gross 3b548adc76
gh-129980: Include test name in TSAN filename in multiprocess test runner (GH-129981) 2025-02-11 12:09:43 -05:00
Ken Jin 247b50dec8
gh-130004: Revert commit 9e52e55 (GH-130005)
Revert commit 9e52e55
2025-02-11 23:23:58 +08:00
Tomas R. 374abded07
gh-104400: pygettext: use an AST parser instead of a tokenizer (GH-104402)
This greatly simplifies the code and fixes many corner cases.
2025-02-11 13:51:42 +02:00
Yuki Kobayashi 1da412e574
gh-101100: Docs: Fix some typos in the document (#129988)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-02-11 13:06:32 +02:00
Wulian233 12bd15f7b3
gh-129939: Add darkmode support for difflib's comparison pages (#129940) 2025-02-11 10:58:57 +02:00
Erlend E. Aasland 3b366a4a4b
gh-129928: Rework sqlite3 error helpers (#129929)
Add a helper for raising DB-API compatible exceptions based on the
result code of SQLite C APIs. Some APIs do not store the error indicator
on the database pointer, so we need to be able to deduce the DB-API
compatible exception directly from the error code.

- rename _pysqlite_seterror() as set_error_from_db()
- introduce set_error_from_code()
2025-02-11 07:49:25 +00:00
Erlend E. Aasland 3a2e7aacf6
gh-129928: Raise more accurate exception for incorrect sqlite3 UDF creation (#129941)
Consistently raise ProgrammingError if the user tries to create an UDF
with an invalid number of parameters.
2025-02-11 08:26:01 +01:00
Ned Deily 0dbe543d70
gh-91132: Update macOS installer to use ncurses 6.5. (#129990) 2025-02-10 23:48:12 -05:00
Hugo van Kemenade 1feaecc2bc
gh-123299: Copyedit "What's New in Python 3.14" (#129970) 2025-02-10 23:46:36 +02:00
Ken Jin 516c70d4dd
Clarify baseline for new interpreter (GH-129972) 2025-02-10 19:07:24 +00:00
Yuki Kobayashi 8d9d3e4ecb
gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-02-10 17:17:37 +01:00
s-hamann d7672e5d5a
gh-127712: Fix `secure` argument of `logging.handlers.SMTPHandler` (GH-127726)
GH-127712: Fix `secure` argument of `logging.handlers.SMTPHandler`

Python 3.12 removed support for the `keyfile` and `certfile` parameters
in `smtplib.SMTP.starttls()`, requiring a `ssl.SSLContext` instead.
`SMTPHandler` now creates a context from the `secure` tuple and passes
that to `starttls`.
2025-02-10 12:34:27 +00:00
Kumar Aditya 94cd2e0dde
gh-129289: fix crash when task finalizer is not called in asyncio (#129840) 2025-02-10 17:03:59 +05:30
Vinay Sajip 7c156a63d3
gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950) 2025-02-10 11:13:52 +00:00
Stéphane Bidoul b8f7bddd6c
gh-129583: update bundled pip to 25.0.1 (#129909)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2025-02-10 12:21:04 +02:00
Bénédikt Tran a1a6df282d
gh-111178: fix UBSan failures in `Modules/_dbmmodule.c` (#129775)
This fixes UBSan failures for `dbmobject`.

In addition, we perform some minor cleanup changes such as renaming
some `args` parameter to `dummy` in some `METH_NOARGS` methods and
suppressing an unused return value in `_dbm_module_free`.
2025-02-10 11:02:47 +01:00
Peter Marko 978211c8a8
gh-126554: correct detection of `gcc` for `TestNullDlsym.test_null_dlsym` (GH-129872)
In case gcc is not available, the test will fail with FileNotFoundError.
So catch the exception to skip the test correctly.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
2025-02-10 10:51:56 +01:00
Kumar Aditya bff4bfeae1
gh-128002: add fast path for native tasks in `asyncio.all_tasks` (#129943) 2025-02-10 15:04:33 +05:30
Kumar Aditya 7246b9124c
gh-128002: simplify `asyncio.all_tasks` to use `PyList_Extend` instead of manual iteration (#129942) 2025-02-10 14:26:32 +05:30
Victorien 2abb6a4f13
Fix typo in 3.14 `pdb` whatsnew entry (#129886) 2025-02-09 22:17:05 -08:00
Stan Ulbrych d9bf3c16e5
gh-68400: Remove outdated 2.7 comment (#129919) 2025-02-09 23:53:32 -05:00
Erlend E. Aasland 7e6ee50b6b
gh-129603: Don't segfault if sqlite3.Row description is None (#129604) 2025-02-10 00:27:28 +01:00
Victorien d05053a203
Fix typo in `enum` documentation (#129920) 2025-02-09 21:48:11 +00:00
Erlend E. Aasland cda83cade0
gh-129870: Skip test_dump_virtual_tables if SQLite lacks FTS4 support (#129913) 2025-02-09 21:43:23 +01:00
Yan Yanchii 91d9544112
gh-126835: Make CFG optimizer skip over NOP's when looking for const sequence construction (#129703)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2025-02-09 18:00:41 +00:00
Ken Jin 8f9c6fa077
Trigger tail call CI on more files (GH-129906) 2025-02-10 00:52:58 +08:00
Nikola Savic c53730171f
gh-129892: Doc: Remove unnecessary role directive in graphlib.py (#129896)
Change `:exec:ValueError` to `ValueError` in `TopologicalSorter.done()` docstring
2025-02-09 18:22:57 +03:00
Kumar Aditya f7c7decc4c
gh-129874: improve test_events to use correct task implementation (#129891) 2025-02-09 18:36:16 +05:30
Kumar Aditya ce0cf7a73a
gh-129874: improve `test_tasks` in asyncio to use correct internal functions (#129890) 2025-02-09 13:02:11 +00:00
Kumar Aditya 09fe550ecc
gh-129874: improve asyncio tests to use correct internal functions (#129887) 2025-02-09 12:05:39 +00:00
Barney Gale c88dacb391
GH-125413: Move `pathlib.Path.copy()` implementation alongside `Path.info` (#129856)
Move pathlib's private `CopyReader`, `LocalCopyReader`, `CopyWriter` and
`LocalCopyWriter` classes into `pathlib._os`, where they can live alongside
the low-level copying functions (`copyfileobj()` etc) and high-level path
querying interface (`PathInfo`).

This sets the stage for merging `LocalCopyReader` into `PathInfo`.

No change of behaviour; just moving some code around.
2025-02-09 12:05:23 +00:00
Kumar Aditya d5796e64e0
gh-129874: avoid mixing pure python and C implementation of asyncio (#129875) 2025-02-09 15:57:00 +05:30
Stan Ulbrych 6fbf15f98e
gh-129873: IDLE: Improve help.py's method of parsing HTML (#129859)
In `help.copy_strip`, only copy the text `<section>`.  In `help.HelpParser.handle_starttag` and elsewhere, remove code to skip the no longer present html.  Add a reminder at the top of idle.rst to run copy_strip after changes.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-09 08:17:35 +00:00
Terry Jan Reedy 0d9c4e260d
gh-129876: Initial 3.14 News3.txt entries (#129881) 2025-02-09 07:24:34 +00:00
Terry Jan Reedy f72977b2f4
gh-112953: Update news to finish 3.13 as main (#129877)
Entry for patch to 3.13.rc3
2025-02-09 06:13:43 +00:00
Tian Gao 29f8a67ae0
Provide curframe_locals for backward compatibility but deprecate it (#125951) 2025-02-08 23:35:28 +00:00
Sam Gross c1f352bf08
gh-128657: Run test_hashlib with `--parallel-threads` (GH-129833)
* gh-128657: Run test_hashlib with `--parallel-threads`

This catches the race in `py_digest_by_name` that is fixed separately
in gh-128886.

* Adjust assertion order
2025-02-08 12:12:21 -08:00
Gregory P. Smith 5ce70ad129
gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (#129866)
mention AF_INET6 and IPv6 in socketserver docs.
2025-02-08 12:06:28 -08:00
Ned Batchelder f2ae79d29e
Docs: more explanation of the implications of new tail-call interpreter (GH-129863)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
2025-02-08 19:28:35 +00:00
Stan Ulbrych 33a7094aa6
gh-129699: Add description to IDLE doc title (#129727)
Also extend the 'idlelib' section header. These additions affect both the displayed idle.html file and the contents.html file displayed by clicking the Complete table of contents link on the main docs.python.org page. (The module index entries are generated from the module name and synopsis within module files.)
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-02-08 14:26:07 -05:00
Hugo van Kemenade 1bccd6c34f
gh-128317: Move CLI calendar highlighting to private class (#129625)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-02-08 15:56:57 +00:00