Matthias Naegler <[email protected]> added the comment:
I forgot something important. Using open with 'ab' works.
>>> ...above code...
with open("./test_binary.txt", "ab") as myfile:
... myfile.write(s.encode('utf-8'))
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40863>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com