Python3: Reading a text/binary mixed file

Chris Angelico rosuav at gmail.com
Mon Mar 9 21:04:04 EDT 2015


On Tue, Mar 10, 2015 at 12:01 PM, Dave Angel <davea at davea.name> wrote:
>> data = open("some_file", "rb")
>
>
> You accidentally omitted the part where you read() the data
>
> data = data.read()

You know, that would help... a LOT. :)

ChrisA



More information about the Python-list mailing list