You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
condition_true -> if_expr_true condition_lambda -> if_expr_lambda These correspond to the Python AST names better.
10 lines
430 B
Python
10 lines
430 B
Python
# Bug found in 2.7 test_itertools.py
|
|
# Bug was erroneously using reduction to if_expr_true
|
|
# A proper fix would be to use if_expr_true only when we
|
|
# can determine there is or was dead code.
|
|
from itertools import izip_longest
|
|
for args in [['abc', range(6)]]:
|
|
target = [tuple([arg[i] if i < len(arg) else None for arg in args])
|
|
for i in range(max(map(len, args)))]
|
|
assert list(izip_longest(*args)) == target
|