Raymond Hettinger <[email protected]> added the comment:
There is an option to work with binary:
with open(filename, 'rb') as f:
bin_data = f.read()
str_data = bin_data.decode('latin-1')
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37984>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com