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
Russell Keith-Magee
7e91e0dcfe
gh-120831: Increase the default minimum supported iOS version to 13.0 ( #121250 )
...
Increases the default minimum iOS version to 13.0.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2024-07-16 12:23:35 +08:00
Donghee Na
2bac2b86b1
gh-121403: Add notes for PyList_GetXXX APIs about the need for init (gh-121626)
2024-07-16 10:16:41 +09:00
Marta Gómez Macías
498a94c198
gh-121295: Fix blocked console after interrupting a long paste (GH-121815)
2024-07-16 01:38:54 +02:00
saucoide
7d111dac16
gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757)
...
console.compile with the "single" param throws an exception when
there are multiple statements, never allowing to adding newlines
to a pasted code block (gh-121610)
This add a few extra checks to allow extending when in an indented
block, and tests for a few examples
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-07-16 01:33:57 +02:00
Tian Gao
2b1b68939b
gh-121814: Only check f_trace_opcodes if Python frame exists ( #121818 )
...
Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
2024-07-15 16:11:02 -07:00
Sam Gross
4134261ab8
gh-121605: Fix test hang when pyrepl is not available (GH-121820)
...
The fallback repl does not support "exit" without parentheses, so the
test would hang until the timeout expired.
2024-07-16 00:50:16 +02:00
Milan Oberkirch
e5c7216f37
gh-121790: Fix interactive console initialization ( #121793 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-07-16 00:24:18 +02:00
Sam Gross
d23be3947c
gh-121794: Don't set `ob_tid` to zero in fast-path dealloc ( #121799 )
...
We should maintain the invariant that a zero `ob_tid` implies the
refcount fields are merged.
* Move the assignment in `_Py_MergeZeroLocalRefcount` to immediately
before the refcount merge.
* Update `_PyTrash_thread_destroy_chain` to set `ob_ref_shared` to
`_Py_REF_MERGED` when setting `ob_tid` to zero.
Also check this invariant with assertions in the GC in debug builds.
That uncovered a bug when running out of memory during GC.
2024-07-15 17:50:10 -04:00
Sam Gross
82a4dac9f6
gh-117657: Skip tests that fork with threads under TSan ( #121599 )
...
This avoids messages like:
ThreadSanitizer: starting new threads after multi-threaded fork is not
supported. Dying (set die_after_fork=0 to override)
2024-07-15 16:43:51 -04:00
Sergey B Kirpichev
05d413764c
gh-121245: Refactor site.register_readline() (GH-121659)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-07-15 22:12:41 +02:00