About threads in python
Hi folks, how are ya? Here's the thing...I had to make a program with threads and after finished, I found some posts and articles in Google about Python and threads, raising the question about if it really implements thread programming or not, because of GIL and the way Python needs to lock some objects. I have now in my program something about 8 threads and each of them runs different code based on some directives, these codes relies sometimes in C api, using classes like zipfile and tarfile, and others relies only in python code. My question is about the efficiency of threads in python, does anybody has something to share? Thanks in advance Eduardo -- http://mail.python.org/mailman/listinfo/python-list
I need some tips to begin a simple project
Hi, I'm new in Python and I'm learning with "Learning Python" oreilly's book which is very good written and explanatory. Now, that I know a bit of Python, I want to make some simple project, I thought something like a menu, just like "kxdocks" menu or something like that, with transparency and all with xml. But I dont know what things I have to know. PyGame is in it, right? And I can use some other graphical interface, like OpenGL? Or with PyGame I can do an animattion like zooming the icon image when hover? All sugestions would be very nice :) Thanks for all -- http://mail.python.org/mailman/listinfo/python-list
Changing the EAX register with Python
Hi folks, I have a unusual question here. How can I change the value of EAX register under python under Linux?? As paimei does under Windows. My project is to have a python program that loads a C program and sets a breakpoint at some address, and then with this breakpoint I change the EAX register and then continue the program execution. With Windows and paimei I did that, but under Linux I don't know yet. Any ideas? Thank you -- http://mail.python.org/mailman/listinfo/python-list
Re: Changing the EAX register with Python
Well, I think using ptrace is really the best way, at least what I have found on Google told me that. Stefan, your answer will fit perfectlly for me, it was what I'm searching. Thank you On Nov 19, 10:43 am, David Cournapeau wrote: > On Fri, Nov 19, 2010 at 4:17 PM, Tim Roberts wrote: > > dutche wrote: > > >>Hi folks, I have a unusual question here. > > >>How can I change the value of EAX register under python under Linux?? > >>As paimei does under Windows. > > >>My project is to have a python program that loads a C program and sets > >>a breakpoint at some address, and then with this breakpoint I change > >>the EAX register and then continue the program execution. > > >>With Windows and paimei I did that, but under Linux I don't know yet. > > > You will need to find a Linux application equivalent to PaiMei. Your > > question is not "how can I change EAX", your question is "where can I find > > a Linux debugger that can be controlled from Python?" > > Well, gdb may just be the tool you are looking for: since version 7.0 > at least, you can script gdb using python, > > http://sourceware.org/gdb/wiki/PythonGdb > > cheers, > > David -- http://mail.python.org/mailman/listinfo/python-list
