Mark Shannon
72f56654d0
GH-128682: Account for escapes in DECREF_INPUTS
(GH-129953)
...
* Handle escapes in DECREF_INPUTS
* Mark a few more functions as escaping
* Replace DECREF_INPUTS with PyStackRef_CLOSE where possible
2025-02-12 17:44:59 +00:00
donBarbos
3e222e3a15
gh-109798: Normalize _datetime
and datetime
error messages ( #127345 )
...
Updates error messages in datetime and makes them consistent between Python and C.
---------
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
2025-02-12 09:54:22 -05:00
Sam Gross
57f45ee2d8
gh-128759: Fix accesses to tp_version_tag
. (GH-129750)
...
We should use a relaxed atomic load in the free threading build in
`PyType_Modified()` because that's called without the type lock held.
It's not necessary to use atomics in `type_modified_unlocked()`.
We should also use `FT_ATOMIC_STORE_UINT_RELAXED()` instead of the
`UINT32` variant because `tp_version_tag` is declared as `unsigned int`.
2025-02-12 09:34:40 -05:00
Tomasz Pytel
3cf68cdd3e
gh-129983: fix data race in compile_template in sre.c ( #130015 )
2025-02-12 18:34:44 +05:30
Andrew Svetlov
469d2e416c
gh-129889: Support context manager protocol by contextvars.Token ( #129888 )
2025-02-12 12:32:58 +01:00
Stefano Rivera
e1b38ea82e
Update manpage environment variables and command line arguments ( #129623 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-12 13:00:35 +02:00
Stan Ulbrych
555ee43d92
gh-59149: Setup documentation for IDLE on Linux and add section in Editors ( #130003 )
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
---------
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-02-12 03:16:56 -05:00
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
b05fa90b21
gh-128446: Skip Windows CI for Unix build system changes ( #128450 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-02-12 01:53:29 +00:00
Wulian233
06ac157c53
gh-125746: Delay deprecated zipimport.zipimporter.load_module
removal time to 3.15 ( #125748 )
2025-02-11 23:59:09 +00:00
Sam Gross
a7427f2db9
gh-129967: Fix race condition in repr(set)
(gh-129978)
...
The call to `PySequence_List()` could temporarily unlock and relock the
set, allowing the items to be cleared and return the incorrect
notation `{}` for a empty set (it should be `set()`).
Co-authored-by: T. Wouters <thomas@python.org>
2025-02-11 17:29:27 -05:00
Sam Gross
1f233f56d6
gh-128657: Skip test_get_builtin_constructor when running with --parallel-threads (GH-130018)
...
The test modifies sys.modules and is not thread-safe.
2025-02-11 16:59:36 -05:00
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
v3.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