Raymond Hettinger <raymond.hettin...@gmail.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37984>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to