On Sunday, April 28, 2013 8:04:04 PM UTC+8, Jens Thoms Toerring wrote:
> Tim Roberts wrote:
>
> > Jimmie He wrote:
>
>
>
> > >When I run the readbmp on an example.bmp(about 100k),the Shell is become
> > >to "No respose",when I change f.read() to f.read(1000),it is ok,could
> > >someone tell
Tim Roberts wrote:
> Jimmie He wrote:
> >When I run the readbmp on an example.bmp(about 100k),the Shell is become to
> >"No respose",when I change f.read() to f.read(1000),it is ok,could someone
> >tell me the excat reason for this?
> >Thank you in advance!
> >
> >Python Code as below!!
> >
>
Tim Roberts wrote:
> Jimmie He wrote:
>
>>When I run the readbmp on an example.bmp(about 100k),the Shell is become
>>to "No respose",when I change f.read() to f.read(1000),it is ok,could
>>someone tell me the excat reason for this? Thank you in advance!
>>
>>Python Code as below!!
>>
>>import bi
Jimmie He wrote:
>When I run the readbmp on an example.bmp(about 100k),the Shell is become to
>"No respose",when I change f.read() to f.read(1000),it is ok,could someone
>tell me the excat reason for this?
>Thank you in advance!
>
>Python Code as below!!
>
>import binascii
>
>def read_bmp():
>
Peter,
Thanks for your test in details. Because I'm an newbie in Python and I can
not conform whether it is an bug. Here I attach my code include my emample.bmp
as link below.
https://hotfile.com/dl/204795514/62fed41/BMPTool.zip.html
--
http://mail.python.org/mailman/listinfo/python-list
Jimmie He wrote:
>> What shell are you using? The one provided by Idle?
>
> Yes. I use IDLE,the python version is 3.3.1.What else could I use??
The shell provided by the operating system is usually much faster. When I
modify your code to
import binascii
def read_bmp():
f = open('example.b
You could use your operating system's shell. Even if it is windows, it
should be a lot better and faster, and thus not block so easily.
On 27 Apr 2013 12:28, "Jimmie He" wrote:
>
> > What shell are you using? The one provided by Idle?
>
> Yes. I use IDLE,the python version is 3.3.1.What else coul
> What shell are you using? The one provided by Idle?
Yes. I use IDLE,the python version is 3.3.1.What else could I use??
--
http://mail.python.org/mailman/listinfo/python-list
Jimmie He wrote:
> When I run the readbmp on an example.bmp(about 100k),the Shell is become
> to "No respose",when I change f.read() to f.read(1000),it is ok,could
> someone tell me the excat reason for this? Thank you in advance!
>
> Python Code as below!!
>
> import binascii
>
> def read_bmp(
What you said should make sense and I've already correct my code by your
advice,thanks for your response!
在 2013年4月27日星期六UTC+8下午5时56分08秒,Fábio Santos写道:
> It may be that you are printing too much data at once. 100k is a bit too much
> to have in memory but it should run anyway. But your console
It may be that you are printing too much data at once. 100k is a bit too
much to have in memory but it should run anyway. But your console may be
having trouble. Try looping over small chunks of the file and printing them
one at a time. Use a while loop. I do know that in windows the console is
not
when I commet the line of "print('bin: ',bsstr,type(bsstr)) ",it can be run,so
maybe the problem is the memory allocate of so long strings..Am I right?
在 2013年4月27日星期六UTC+8上午11时57分45秒,Jimmie He写道:
> When I run the readbmp on an example.bmp(about 100k),the Shell is become to
> "No respose",wh
When I run the readbmp on an example.bmp(about 100k),the Shell is become to "No
respose",when I change f.read() to f.read(1000),it is ok,could someone tell me
the excat reason for this?
Thank you in advance!
Python Code as below!!
import binascii
def read_bmp():
f = open('example.bmp','rb'
13 matches
Mail list logo