Fix unpack msg by youknowone · Pull Request #7175 · RustPython/RustPython
marked this pull request as ready for review
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.
youknowone added a commit to youknowone/RustPython that referenced this pull request
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters