Message 147045 - Python tracker
Python 3.2.2 (default, Nov 4 2011, 22:28:55) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys, io >>> w = io.TextIOWrapper(sys.stdin.detach(), 'ascii', 'replace') >>> input <built-in function input> >>> input() Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: underlying buffer has been detached