Это код:
Код: Выделить всё
def testy():
return 'Testy !'
import sys
sys.stdin.write(testy())
Код: Выделить всё
Traceback (most recent call last):
File "stdin_test2.py", line 7, in
sys.stdin.write(testy())
io.UnsupportedOperation: not writable
Подробнее здесь: https://stackoverflow.com/questions/150 ... t-to-stdin