This simplifies the way that `InteractiveConsole` does stream redirections and adds stream redirection for `stdin`. I also moved `banner` from a class method of `InteractiveConsole` to a module level constant `BANNER`.
Rearrange InteractiveConsole stream redirections. This simplifies the way that `InteractiveConsole` does stream redirections and adds stream redirection for `stdin`. I also moved `banner` from a class method of `InteractiveConsole` to a module level constant `BANNER`.
# setup: from decimal import Decimal ; A = [Decimal('2.1') for i in range(1000)] ; B = [Decimal('3.2') for i in range(1000)]  # noqa
# run: large_decimal_list(A, B)


def large_decimal_list(A, B):
    return [a * b for a, b in zip(A, B)]

# setup: from decimal import Decimal ; A = [Decimal('2.1') for i in range(1000)] ; B = [Decimal('3.2') for i in range(1000)]  # noqa
# run: large_decimal_list(A, B)


def large_decimal_list(A, B):
    return [a * b for a, b in zip(A, B)]
