Код: Выделить всё
def printf(handler, string):
print(string)
sys.stdout.flush()
if handler is not None:
handler.write(str(string))
handler.write("\n")
Код: Выделить всё
AttributeError: 'NoneType' object has no attribute 'flush'
Я не нашел решения после поиска в сети.< /p>
Как встроенный sys.stdout может иметь значение None?
Подробнее здесь: https://stackoverflow.com/questions/774 ... yinstaller