On Sun, Dec 13, 2015 at 1:05 PM, KP wrote:
> On Sunday, 13 December 2015 11:57:57 UTC-8, Laura Creighton wrote:
>> In a message of Sun, 13 Dec 2015 11:45:19 -0800, KP writes:
>> >Hi all,
>> >
>> > f = open("stairs.bin", "rb")
>> > data = list(f.read(16))
>> >
Hi all,
f = open("stairs.bin", "rb")
data = list(f.read(16))
print data
returns
['=', '\x04', '\x00', '\x05', '\x00', '\x01', '\x00', '\x00', '\x00', '\x00',
'\x00', '\x00', '\x00', '\x00', '\x00', '\x00']
The first byte of the file is 0x3D according to my hex editor, so
On Sun, Dec 13, 2015 at 12:45 PM, wrote:
> Hi all,
>
> f = open("stairs.bin", "rb")
> data = list(f.read(16))
> print data
>
> returns
>
> ['=', '\x04', '\x00', '\x05', '\x00', '\x01', '\x00', '\x00', '\x00', '\x00',
> '\x00', '\x00', '\x00', '\x00',
In a message of Sun, 13 Dec 2015 11:45:19 -0800, high5stor...@gmail.com writes:
>Hi all,
>
> f = open("stairs.bin", "rb")
> data = list(f.read(16))
> print data
>
>returns
>
>['=', '\x04', '\x00', '\x05', '\x00', '\x01', '\x00', '\x00', '\x00', '\x00',
>'\x00', '\x00', '\x00',
On Sunday, 13 December 2015 11:57:57 UTC-8, Laura Creighton wrote:
> In a message of Sun, 13 Dec 2015 11:45:19 -0800, KP writes:
> >Hi all,
> >
> > f = open("stairs.bin", "rb")
> > data = list(f.read(16))
> > print data
> >
> >returns
> >
> >['=', '\x04', '\x00', '\x05', '\x00',
On 13/12/15 20:28, Erik wrote:
When you call "print", then the list class's __repr__() method is called
which in turn calls the contained objects' __repr__() methods in turn
I mean the __str__() method, not __repr__() in this case - however, the
answer is otherwise the same.
E.
--
On Mon, Dec 14, 2015 at 7:31 AM, Erik wrote:
> On 13/12/15 20:28, Erik wrote:
>>
>> When you call "print", then the list class's __repr__() method is called
>> which in turn calls the contained objects' __repr__() methods in turn
>
>
> I mean the __str__() method, not
On 12/13/2015 12:05 PM, KP wrote:
On Sunday, 13 December 2015 11:57:57 UTC-8, Laura Creighton wrote:
In a message of Sun, 13 Dec 2015 11:45:19 -0800, KP writes:
Hi all,
f = open("stairs.bin", "rb")
data = list(f.read(16))
print data
returns
['=', '\x04', '\x00', '\x05',
On 13/12/15 20:05, KP wrote:
On Sunday, 13 December 2015 11:57:57 UTC-8, Laura Creighton wrote:
In a message of Sun, 13 Dec 2015 11:45:19 -0800, KP writes:
Hi all,
f = open("stairs.bin", "rb") data = list(f.read(16)) print data
returns
['=', '\x04', '\x00', '\x05', '\x00', '\x01', '\x00',