Re: read(size=-1)

2007-08-06 Thread Diez B. Roggisch
7stud schrieb: > Suppose I write: > > f = open("myimg.jpg") > f.read(10) > > > According to the docs, > --- > read([size]) > > Read at most size bytes from the fileThe bytes are returned as a > string object. > -- > > How does python convert a byte to a string? A string _i

Re: read(size=-1)

2007-08-06 Thread Steve Holden
7stud wrote: > Suppose I write: > > f = open("myimg.jpg") > f.read(10) > > > According to the docs, > --- > read([size]) > > Read at most size bytes from the fileThe bytes are returned as a > string object. > -- > > How does python convert a byte to a string? > Each byte o