You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i found the file i/o section to be refreshing and enlightening, but it works only on files we open, which unfortunately doesn't work with stdin/stdout and friends.
there are various idioms out there to fix this. here i have seen:
i found the file i/o section to be refreshing and enlightening, but it works only on files we open, which unfortunately doesn't work with stdin/stdout and friends.
there are various idioms out there to fix this. here i have seen:
and here i have seen:
both seem pretty ugly to me - is there a better way to do this in both py2 and py3 that we should document here?
my favorite right now is
PYTHONIOENCODING=utf-8
but then that can't be done from within the program itself.The text was updated successfully, but these errors were encountered: