Sergey B Kirpichev
79f7c67bf6
gh-128813: hide mixed-mode functions for complex arithmetic from C-API ( #131703 )
2025-04-22 14:18:18 +02:00
Stan Ulbrych
5ffb89420c
gh-46236: Add Py_UNICODE_REPLACEMENT_CHARACTER doc ( #132706 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-22 14:16:51 +02:00
Serhiy Storchaka
e84624450d
gh-132734: Add new constants for Bluetooth sockets (GH-132735)
2025-04-22 11:02:13 +00:00
RUANG (James Roy)
05d0559db0
gh-46236: Add PyUnicode_Resize() doc ( #132628 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-04-22 11:39:04 +02:00
Sergey B Kirpichev
d0660a9a40
gh-101410: Customize error messages for 1-arg math functions ( #129497 )
...
This also reverts loghelper() change in 75f59bb629
for integer
input. The error message shouldn't include argument value here.
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-22 11:29:20 +02:00
Pablo Galindo Salgado
bf3a0a1c0f
gh-132449: Improve syntax error messages for keywords with typos ( #132450 )
...
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2025-04-22 11:01:55 +02:00
mpage
3cfab449ab
gh-132578: Rename the threading.Thread._handle
field ( #132696 )
...
Commit `0e9c364f
` introduced the `_handle` field on instances of
`threading.Thread`. Unfortunately it's fairly common for subclasses
of `threading.Thread` to define a `_handle()` method, which is shadowed
by the new field.
2025-04-21 16:07:54 -07:00
Sebastian Rittau
2b47f46d7d
gh-122179: Fix hashlib.file_digest and non-blocking I/O (GH-122183)
...
* Fix hashlib.file_digest and non-blocking I/O
* Add documentation around this behavior
* Add versionchanged
2025-04-21 14:15:05 -07:00
Peter Bierma
fa70bf8593
gh-132747: Fix NULL
dereference when calling a method's __get__
manually ( #132772 )
2025-04-21 14:09:34 -07:00
Duprat
c8e0b6e684
gh-132719: Fix AMD64 FreeBSD14/15 3.x failures - test_rlock_locked_2processes
used an unknown Value
(GH-132774)
...
* Fix creation of resvariable
2025-04-21 13:59:15 -07:00
Jelle Zijlstra
01317bb449
gh-132479: Fix crash with multiple comprehensions in annotations ( #132778 )
2025-04-21 13:49:59 -07:00
Stan Ulbrych
08e331d05e
PR 132638 typo fix ( #132785 )
...
Update remote_debugging.rst
2025-04-21 20:33:19 +00:00
ivonastojanovic
2b1dac6039
gh-131591: Add remote debugging attachment protocol documentation ( #132638 )
...
Add a developer-facing document describing the protocol used by
remote_exec(pid, script) to execute Python code in a running process.
This is intended to guide debugger and tool authors in reimplementing
the protocol.
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
2025-04-21 20:18:24 +00:00
Sam Gross
da53660f35
gh-131586: Avoid refcount contention in context managers (gh-131851)
...
This avoid reference count contention in the free threading build
when calling special methods like `__enter__` and `__exit__`.
2025-04-21 15:54:25 -04:00
Peter Bierma
8dfa840773
gh-127604: Add C stack dumps to faulthandler
( #128159 )
2025-04-21 20:48:02 +01:00
sobolevn
ea8ec95cfa
gh-132769: Refactor possible read-out-of-bounds in lexer.c
( #132770 )
2025-04-21 18:48:48 +01:00
Kumar Aditya
8516343d3a
gh-127945: add test_ctypes
to free-threading TSAN CI ( #132727 )
2025-04-21 22:56:56 +05:30
Brandt Bucher
4f7f72ce34
GH-130415: Improve the JIT's unneeded uop removal pass (GH-132333)
2025-04-21 09:58:55 -07:00
Eric Snow
9be3645688
gh-132777: Fix Error Message for Duplicates in generate_global_scripts.py (gh-132780)
...
The fstring would actually raise a KeyError, which we fix. We also adjust the text to be correct.
2025-04-21 16:58:10 +00:00
Steve Dower
09b624b80f
gh-132639: Adds PyLong_AsNativeBytes, PyLong_FromNativeBytes and PyLong_FromUnsignedNativeBytes to the limited API (GH-132640)
2025-04-21 15:59:03 +01:00
Jelle Zijlstra
70b322d313
annotations: Add tests to check that async comprehensions produce errors ( #132513 )
...
This already works correctly but I forgot to test for it.
2025-04-21 07:06:33 -07:00
Саша Черных
132b6bc98f
gh-132054: Add `application/yaml
to
mimetypes
` ( #132056 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-21 12:05:37 +03:00
Adam Turner
fee808936f
gh-85583: Add an overview of formatted string literals (f-strings) to `str
` ( #132689 )
2025-04-21 07:49:06 +00:00
Serhiy Storchaka
a04390b4da
gh-132742: Add more tests for fcntl.ioctl() (GH-132756)
...
Test with different types of argument: integer, mutable and immutable
buffers, immutable buffer with mutable_flag set to false.
2025-04-21 09:26:06 +03:00
Serhiy Storchaka
78cfee6f09
gh-132753: Argument Clinic: Fix support of c_default for the bool converter (GH-132754)
2025-04-20 23:21:29 +00:00
Alper
dc4a7077ac
InternalDocs: Fix outdated struct references in frames.md ( #132613 )
...
Docs: Fix outdated struct references in frames.md
Co-authored-by: alperyoney <alperyoney@fb.com>
2025-04-20 23:24:21 +01:00
Bénédikt Tran
5f2ba152a0
gh-131298: eliminate HACL* static libraries for cryptographic modules (GH-132438)
...
* simplify HACL* build for MD5, SHA1, SHA2 and SHA3 modules
* remove statically linked libraries for HACL* implementation
* is it better now?
* is it better now?
* fixup
* Present HACL* as a static or shared library.
On WASI, extension modules based on HACL* require the HACL*
library to be linked statically. On other platforms, it can
be built dynamically.
* amend whitespace
* remove temporary .so file as it requires more symlinks
* avoid smelly symbols
* fixup checksums
* regen sbom
* fixup shell warnings and comments
* it *should* work
2025-04-20 17:40:17 +00:00
Bénédikt Tran
492e3e6976
gh-129098: avoid using content of _pyrepl/__main__.py
when reporting tracebacks ( #130721 )
2025-04-20 18:24:30 +01:00
Bénédikt Tran
5d8e432d9f
gh-132390: Apply Ruff linting to Tools/build
( #132391 )
...
---------
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-04-20 11:21:41 +02:00
Bénédikt Tran
246ed23456
gh-127117: ensure that _initial_thread
is the last field of PyInterpreterState
when Py_STACKREF_DEBUG
is defined ( #132721 )
2025-04-20 11:53:00 +05:30
Stan Ulbrych
a16586c9e7
gh-129327: revise hashlib documentation to account for FIPS removing sha1 (GH-132729)
...
* gh-129327: revise hashlib documentation to account for FIPS removing sha1
More generally, the current documentation is a bit scattered, talking
about what terms are "equal" despite those terms not being very
interesting and given the term "secure hash", probably wrong (because
md5 and sha1 are not secure anymore).
Let's talk about cryptographically secure instead, and note that two of
them aren't. And then we can also link to the source for NIST going
through the removal process for SHA1.
* Add Gregors Suggestion
* Clean up
---------
Co-authored-by: Eli Schwartz <eschwartz@gentoo.org>
2025-04-20 01:06:24 +00:00
Tomas R.
71da68d588
gh-131952: Add colour to the `json
` module CLI ( #132126 )
...
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>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-19 18:11:21 +00:00
Adam Turner
e7c5f60efc
gh-130167: Improve the error case for `textwrap.dedent
` ( #132666 )
2025-04-19 16:18:03 +01:00
Willow Chargin
c821b715b3
Update entry for Willow Chargin in .mailmap
and ACKS
( #132714 )
2025-04-19 14:50:59 +00:00
Stan Ulbrych
e154e4db36
Docs: Fix REPL example in Doc/library/shutil.rst
( #132700 )
2025-04-19 16:15:00 +02:00
Stan Ulbrych
df85bb37b6
Exclude .mailmap
in Codeowners ( #132722 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-19 16:34:40 +03:00
Kumar Aditya
5b06d2ceca
gh-127945: add lock held assertions in ctypes arrays ( #132720 )
2025-04-19 18:27:10 +05:30
Duprat
69cda31261
gh-132308: prevent TracebackException
swallowing attributes of a falsey Exception
or ExceptionGroup
( #132363 )
2025-04-19 09:49:18 +00:00
Bénédikt Tran
427e7fc099
gh-132399: ensure correct alignment of PyInterpreterState
( #132428 )
2025-04-19 11:03:06 +02:00
Bénédikt Tran
8a9c6c4d16
gh-128398: improve error messages when incorrectly using with
and async with
( #132218 )
...
Improve the error message with a suggestion when an object supporting the synchronous
(resp. asynchronous) context manager protocol is entered using `async with` (resp. `with`)
instead of `with` (resp. `async with`).
2025-04-19 10:44:01 +02:00
Sergey B Kirpichev
95800fe6e7
Correct _PyLong_Frexp() description in comments (GH-132716)
...
This amends d08c788822
, now this function always successful.
2025-04-19 07:42:20 +00:00
Chris Eibl
815061cbab
speedup test_pyrepl ( #132688 )
...
speedup test_unix_console.py and test_windows_console.py
2025-04-19 02:12:40 +01:00
Pablo Galindo Salgado
c9a855a9e0
gh-131591: Execute the source and not the file to avoid locking it in Windows ( #132712 )
...
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
2025-04-19 00:38:12 +00:00
Rami
9752c84022
gh-89562: Remove hostflags from PySSLContext (GH-28602)
...
Remove hostflags from PySSLContext as that was only needed for OpenSSL versions prior to 1.1.1
2025-04-18 15:27:32 -07:00
Jeroen Bogers
ce31ae5209
gh-129719: Restore missing socket.CAN_RAW_ERR_FILTER
on Linux ( #129721 )
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-04-18 22:59:37 +03:00
Raymond Hettinger
741c6386b8
Minor doc edit: Make multinomial() the first math example (gh-132697)
2025-04-18 12:41:13 -05:00
Bénédikt Tran
1d5dc5f1c3
gh-132396: Resolve 'redefinition of unused name' errors in `Lib/test/
` ( #132397 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-04-18 18:14:54 +01:00
Kumar Aditya
4c3d187d9f
gh-126366: fix thread safety of dict key iterator ( #132693 )
2025-04-18 21:43:49 +05:30
Kumar Aditya
7fd708b727
gh-132685: fix thread safety of PyMember_GetOne
with _Py_T_OBJECT
( #132690 )
2025-04-18 21:03:42 +05:30
Pieter Eendebak
e77d6784e7
gh-132657: Avoid locking in frozenset.__contains__ ( #132659 )
2025-04-18 20:20:29 +05:30