Serhiy Storchaka
c8d2630995
gh-82017: Support as_integer_ratio() in the Fraction constructor (GH-120271)
...
Any objects that have the as_integer_ratio() method (e.g. numpy.float128)
can now be converted to a fraction.
2024-07-19 08:06:53 +03:00
Tian Gao
eaf094c09b
gh-120289: Add external timer in traverse of _lsprof.Profiler ( #121998 )
2024-07-18 20:46:24 -07:00
Brandt Bucher
7b36b67b1e
GH-118093: Add tier two support to several instructions (GH-121884)
2024-07-18 14:24:58 -07:00
Adam Turner
7dd52b63ce
GH-117928: Bump the minimum Sphinx version to 6.2.1 ( #121986 )
2024-07-18 21:05:38 +00:00
Tian Gao
1ab1778283
gh-120289: Disallow disable() and clear() in external timer to prevent use-after-free ( #120297 )
2024-07-18 12:47:22 -07:00
Adam Turner
7431c3799e
GH-121970: Combine custom Pygments lexers into a package ( #121976 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-07-18 18:38:29 +00:00
Sam Gross
12c1afa9d1
gh-121946: Temporarily switch to llvm-17 in TSan CI ( #121975 )
...
The Ubuntu package for llvm-18 is broken
2024-07-18 13:30:52 -04:00
Nate Ohlson
bdab67e1c7
gh-112301: Add fortify source level 3 to default compiler options (gh-121520)
2024-07-19 01:06:51 +09:00
Vlastimil Zíma
94e6644584
gh-65453: Docs - clarify AttributeError behaviour on PropertyMock (GH-121666)
...
Fixed at EuroPython 24 sprints.
2024-07-18 15:57:21 +02:00
Matthieu Caneill
cecaceea31
gh-120930: Remove extra blank occuring in wrapped encoded words in email headers (GH-121747)
2024-07-18 14:48:05 +02:00
Gregor
1056f2bc20
gh-121657: Additional `yield from` error test using lambda (GH-121722)
2024-07-18 14:29:03 +02:00
Mark Shannon
3eacfc1a4d
GH-121784: Generate an error during code gen if a variable is marked `unused`, but is used and thus cached in a prior uop. ( #121788 )
...
* Reject uop definitions that declare values as 'unused' that are already cached by prior uops
* Track which variables are defined and only load from memory when needed
* Support explicit `flush` in macro definitions.
* Make sure stack is flushed in where needed.
2024-07-18 12:49:24 +01:00
Mark Shannon
169324c27a
GH-120024: Use pointer for stack pointer (GH-121923)
2024-07-18 12:47:21 +01:00
Bernhard M. Wiedemann
24cf867bed
gh-121874: Define audit-event open parameters consistently (GH-121883)
...
Use same names for parameters to avoid triggering a race-condition in Sphinx
that causes non-deterministic output.
2024-07-18 13:05:39 +03:00
Jelle Zijlstra
63ddd28cf3
gh-121921: Make bogus_code_obj.py crash the interpreter ( #121922 )
2024-07-18 04:02:08 -04:00
Victor Stinner
c5a6b9afd8
gh-121266: Remove Py_ALWAYS_INLINE in dictobject.c ( #121493 )
...
compare_unicode_generic(), compare_unicode_unicode() and
compare_generic() are callbacks used by do_lookup(). When enabling
assertions, it's not possible to inline these functions.
2024-07-18 08:19:32 +02:00
Sam Gross
81fd625b5c
gh-121621: Move asyncio_running_loop to private struct ( #121939 )
...
This avoids changing the ABI and keeps the field in the private struct.
2024-07-17 15:21:24 -07:00
Savannah Ostrowski
f113c1a2a9
Add note about PYTHON_JIT environment variable to JIT README (GH-121635)
2024-07-17 15:17:47 -07:00
Victor Stinner
51da3dfbf3
gh-121266: Change dict check_lookup() return type to int ( #121581 )
2024-07-17 21:52:19 +02:00
Victor Stinner
b826e459ca
gh-121528: Fix _PyObject_Init() assertion for stable ABI ( #121725 )
...
Add _Py_IsImmortalLoose() function for assertions.
2024-07-17 21:49:37 +02:00
sobolevn
f4bc84d261
gh-121925: Fix uninitialized variables in `main.c` ( #121926 )
2024-07-17 16:13:37 +00:00
Łukasz Langa
19cbf8fd63
gh-120678: Guard against stdin.fileno() being unavailable ( #121924 )
2024-07-17 16:05:34 +00:00
Alex Waygood
ac07451116
gh-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-07-17 16:18:42 +02:00
Terry Jan Reedy
58753f33e4
gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz ( #121876 )
...
Problem occurred when attribute xyz could not be pickled.
Since this is not trivial to selectively fix, block all
attributes (other than 'width'). IDLE does not access them
and they are private implementation details.
2024-07-17 09:33:33 -04:00
Bénédikt Tran
6682d91678
gh-119698: fix a special case in `symtable.Class.get_methods` ( #121802 )
2024-07-17 06:27:35 -07:00
Petr Viktorin
cffad5c6ef
gh-121863: Immortalize names in code objects to avoid crash (GH-121903)
2024-07-17 11:31:28 +02:00
Victor Stinner
bfdbeac355
gh-121849: Fix PyUnicodeWriter_WriteSubstring() crash if len=0 ( #121896 )
...
Do nothing if start=end.
2024-07-17 10:26:05 +02:00
Rafael Fontenelle
5d98a4d266
Remove duplicate "it" in whatsnew 3.13 ( #121580 )
2024-07-17 00:31:21 -07:00
Michael
dc9cc91f76
Fix Several Typos in Readme & Tests ( #121559 )
2024-07-17 00:24:35 -07:00
sobolevn
72dccd6073
gh-121834: Improve `complex` C-API docs ( #121835 )
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-07-17 10:01:28 +03:00
sobolevn
f6c7d8d79c
gh-121842: Improve coverage of `PyBytes_FromStringAndSize` ( #121843 )
2024-07-17 10:00:07 +03:00
Wulian233
37611171af
gh-121453: Update the `Doc/templates/download.html` download files size estimates and support download `.texi` format. ( #121454 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-07-17 00:20:55 -06:00
Bernhard M. Wiedemann
941b3b7f44
gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH ( #121872 )
2024-07-16 23:34:00 -06:00
Michael Droettboom
f036a463db
GH-121583: Remove dependency from pystats.h to internal header file (GH-121587)
...
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2024-07-16 15:38:29 -07:00
Zachary Ware
4e35dd607b
gh-83648: Use versionadded in 'deprecated' description (GH-121877)
2024-07-16 21:26:17 +00:00
Brett Cannon
f589f263bc
GH-120371: Add WASI SDK 22 support (GH-121870)
...
Required disabling stub functions now provided by wasi-libc.
2024-07-16 20:00:39 +00:00
Tian Gao
e65cb4c6f0
gh-118934: Make PyEval_GetLocals return borrowed reference ( #119769 )
...
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
2024-07-16 12:17:47 -07:00
Sam Gross
162b41f577
gh-121860: Fix crash when materializing managed dict ( #121866 )
...
The object's inline values may be marked invalid if the materialized
dict was already initialized and then deleted.
2024-07-16 14:58:36 -04:00
Pablo Galindo Salgado
c46d64e0ef
gh-121130: Fix f-string format specifiers with debug expressions ( #121150 )
2024-07-16 19:57:22 +01:00
Ken Jin
69c68de43a
gh-121621: Move asyncio running loop to thread state (GH-121695)
2024-07-17 01:09:58 +08:00
Andreas Stocker
8f2532168b
gh-59022: Added tests for `pkgutil.extend_path` ( #59022 ) (GH-121673)
...
This adds tests for the documented behaviour of `pkgutil.extend_path`
regarding different argument types as well as for `*.pkg` files.
2024-07-16 17:14:26 +02:00
Petr Viktorin
263c7e611b
gh-121160: Add some tests for readline.set_history_length (GH-121326)
2024-07-16 16:09:08 +02:00
Petr Viktorin
b4aedb23ae
gh-113993: Don't immortalize in PyUnicode_InternInPlace; keep immortalizing in other API ( #121364 )
...
* Switch PyUnicode_InternInPlace to _PyUnicode_InternMortal, clarify docs
* Document immortality in some functions that take `const char *`
This is PyUnicode_InternFromString;
PyDict_SetItemString, PyObject_SetAttrString;
PyObject_DelAttrString; PyUnicode_InternFromString;
and the PyModule_Add convenience functions.
Always point out a non-immortalizing alternative.
* Don't immortalize user-provided attr names in _ctypes
2024-07-16 15:36:21 +02:00
Alyssa Coghlan
d7a099d7ae
GH-105879: Note exec/eval keyword change in What's New (GH-121831)
2024-07-16 13:24:45 +00:00
Petr Viktorin
956270d08d
gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)
...
Older stable ABI extensions are allowed to make immortal objects mortal.
Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
2024-07-16 15:17:29 +02:00
Sviatoslav Sydorenko (Святослав Сидоренко)
a0b205bba5
🧪 🚑 Fix using `check_source` flags as bool ( #121848 )
2024-07-16 12:50:30 +00:00
Ned Deily
f27593a87c
gh-120522: Revert "Add a `--with-app-store-compliance` configure option to patch out problematic code" (gh-120984) ( #121844 )
...
This reverts commit 48cd104b0c
prior
to the release of 3.13.0b4 to allow for additional review time.
2024-07-16 06:49:36 -04:00
Lysandros Nikolaou
8549559f38
gh-120317: Lock around global state in the tokenize module ( #120318 )
...
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
2024-07-16 11:35:57 +02:00
sobolevn
8b6d475581
gh-121791: Check for `NULL` in `MethodDescriptor2_new` in `_testcapi` ( #121792 )
2024-07-16 11:29:33 +03:00
edson duarte
1755df7b3b
gh-85453: Fix 'timezone' vs. 'time zone' spelling issues in datetime.rst ( #118449 )
2024-07-16 10:17:00 +02:00