Commit Graph

5 Commits

Author SHA1 Message Date
Jeong, YunWon
d4d010ec21 Fix unpack_sequence to match CPython behavior (#7175)
Add fast path for exact tuple/list (direct length check without
iterator). General path now iterates only size+1 elements,
fixing hang on infinite sequences like __getitem__ without
raising IndexError.

Error messages now include "got N" for tuple, list, and dict.
Remove 7 expectedFailure/skip markers from test_unpack.
2026-02-18 00:41:53 +09:00
ShaharNaveh
0832828953 Update test_unpack.py from 3.14.3 2026-02-16 23:34:17 +09:00
wellweek
2fde8e91e5 fix some typos (#5187)
Signed-off-by: wellweek <xiezitai@outlook.com>
2024-03-11 15:01:37 +09:00
LYK
eb7daf1b74 Update test/test_unpack.py from CPython 3.11.2 2023-03-10 03:24:36 +09:00
CPython dev
be8c71be24 Lib/test/test_unpack.py from CPython 3.8.2 2020-06-02 01:23:29 +09:00