◐ Shell
clean mode source ↗

Message 252421 - Python tracker

I would fallback to PyFile_WriteObject(prompt, fout, Py_PRINT_RAW) if the stdout has no the encoding attribute or it is not a string.