Re: "python.exe has stopped working" when os.execl() runs on Windows 7

2013-04-27 Thread cormogram
I did that but unfortunately the 'bug' persists. :( I've chosen the os module because I though it would be more portable. :/ On Sunday, April 28, 2013 12:53:25 AM UTC-3, Nobody wrote: > On Sat, 27 Apr 2013 17:22:31 -0700, cormogram wrote: > > > > > Was trying os.execl() and got a "python.exe h

Re: File Read issue by using module binascii

2013-04-27 Thread Tim Roberts
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(): >

Re: "python.exe has stopped working" when os.execl() runs on Windows 7

2013-04-27 Thread Nobody
On Sat, 27 Apr 2013 17:22:31 -0700, cormogram wrote: > Was trying os.execl() and got a "python.exe has stopped working" on my > Windows 7 Ultimate SP1 x64 desktop. > > I'm using Python 2.7.4 and that happens when the second arg is ''. For > example: > > os.execl('filename.exe','') Note that, by

Re: "python.exe has stopped working" when os.execl() runs on Windows 7

2013-04-27 Thread cormogram
Probably a bug I suppose. :( I've used subprocess before and it works fine. I was just learning about the os module. os.execl() works if you provide no nulls, for example: os.execl('c:\\bin\\filename.exe','filename.exe','arg1') Is there the place to open a ticket for Python developers? Who keep

Re: "python.exe has stopped working" when os.execl() runs on Windows 7

2013-04-27 Thread Dave Angel
On 04/27/2013 09:05 PM, cormog...@gmail.com wrote: Yes, just those two lines cause the error. 'filename.exe' exists and runs ok in the command prompt. Any other executable cause the problem, also '', for example: os.execl('','') If doesn't work on Windows it should give an error message, righ

Re: "python.exe has stopped working" when os.execl() runs on Windows 7

2013-04-27 Thread cormogram
Yes, just those two lines cause the error. 'filename.exe' exists and runs ok in the command prompt. Any other executable cause the problem, also '', for example: os.execl('','') If doesn't work on Windows it should give an error message, right? On Saturday, April 27, 2013 9:55:34 PM UTC-3, Dav

Re: "python.exe has stopped working" when os.execl() runs on Windows 7

2013-04-27 Thread Dave Angel
On 04/27/2013 08:22 PM, cormog...@gmail.com wrote: Was trying os.execl() and got a "python.exe has stopped working" on my Windows 7 Ultimate SP1 x64 desktop. I'm using Python 2.7.4 and that happens when the second arg is ''. For example: os.execl('filename.exe','') Wtf? :( http://postimg.or

"python.exe has stopped working" when os.execl() runs on Windows 7

2013-04-27 Thread cormogram
Was trying os.execl() and got a "python.exe has stopped working" on my Windows 7 Ultimate SP1 x64 desktop. I'm using Python 2.7.4 and that happens when the second arg is ''. For example: os.execl('filename.exe','') Wtf? :( http://postimg.org/image/vdliyuenh/ -- http://mail.python.org/mailman

Re: Comparison Style

2013-04-27 Thread Terry Jan Reedy
On 4/27/2013 5:03 PM, Roy Smith wrote: In article , Chris Angelico wrote: If you switch the order of operands in that, the compiler won't help you. Plus it "reads" wrong. So the convention is still variable==constant. I just found a nice example of putting the constant first. I've just do

Re: Comparison Style

2013-04-27 Thread Roy Smith
In article , Chris Angelico wrote: > If you switch the order of operands in that, the compiler won't help > you. Plus it "reads" wrong. So the convention is still > variable==constant. I just found a nice example of putting the constant first. I've just done a whole bunch of ugly math to find

Re: Shear image (numpy.ndarray)

2013-04-27 Thread Robert Kern
On 2013-04-27 12:46, Radek Machulka wrote: Hi, I am looking for some function that would shear my 2D numpy.ndarray array. Since the numpy (probably) does not provide such a functionality (numpy.roll does not do what I need), I hope the PIL might do the trick. Google give me page that says: 'Thi

Shear image (numpy.ndarray)

2013-04-27 Thread Radek Machulka
Hi, I am looking for some function that would shear my 2D numpy.ndarray array. Since the numpy (probably) does not provide such a functionality (numpy.roll does not do what I need), I hope the PIL might do the trick. Google give me page that says: 'This function (im.transform) can be used to scal

Python developers

2013-04-27 Thread act pet
http://tech.groups.yahoo.com/group/Python_Developers/ -- http://mail.python.org/mailman/listinfo/python-list

Re: File Read issue by using module binascii

2013-04-27 Thread Jimmie He
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

Re: Python platform/framework for new RESTful web app

2013-04-27 Thread Fábio Santos
For rest I would go with bottle. It's dead simple, and you can plug in anything you like. You can probably use django models as well, so you don't have to rewrite your model layer. Or django-smarter. On 27 Apr 2013 13:23, "Chris “Kwpolska” Warrick" wrote: > On Thu, Apr 25, 2013 at 10:00 PM, Eric

Re: Python platform/framework for new RESTful web app

2013-04-27 Thread Chris “Kwpolska” Warrick
On Thu, Apr 25, 2013 at 10:00 PM, Eric Frederich wrote: > If I wanted to create a new web application (RESTful) today with Python what > are my options given the following requirements. > > * Google Account authentication > * Facebook authentication > * Managed hosting (like Google App Engine or H

Re: File Read issue by using module binascii

2013-04-27 Thread Peter Otten
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

Re: File Read issue by using module binascii

2013-04-27 Thread Fábio Santos
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

Re: File Read issue by using module binascii

2013-04-27 Thread Jimmie He
> 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

Re: File Read issue by using module binascii

2013-04-27 Thread Peter Otten
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(

Re: File Read issue by using module binascii

2013-04-27 Thread Jimmie He
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

Re: File Read issue by using module binascii

2013-04-27 Thread 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 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

Malware Analyzer

2013-04-27 Thread Hasil Sharma
Python based malware analyzer, better if it supports scanning of pcap files. -- http://mail.python.org/mailman/listinfo/python-list