#python - Mon 19 Mar 2007 between 01:10 and 01:56

NY Lost Funds



dancorbut my real question is about how signals are propagated to subprocesses (started with subprocess.Popen)
lonewolf1066The InitializeFunction() is called the start of the program, but the big issue is the CallFunc , seems way too verbose and I'm sure there's terrible overhead.
dancorif i run parent.py which does Popen('python child.py', shell=True) and give a ^C
lonewolf1066I'm wondering if you could recommend a better, more efficient and faster approach to calling a function in Python.
kamorickssystem()
dancorthen it show up on: childe,parent,child,child,child
that's five catches for one ^C
isn't that ridiculous
ah, it seems each ^C started a new child :)
anyway the _real_ question is how to stop ^C from going to both parent and child
Jerubuh.
you do it the proper way with a signal handler for sigint
dancorJerub: so there is no way to stop both processes from getting the signal
i wanted the parent to catch the signal and not pass it to the child
koshLoneWolf1066: how can you be sure of overhead if you have not profiled yet?
lonewolf1066Kosh: True, what I'm saying though is the fact that CallFunc is being called 640000 times every single time that the display is updated. I figured there had to be a better way to call a Python function
peterhunthi, i have a question about 2.5's generator/coroutine enhancements
koshguess he didn't want to ask his question
LoneWolf1066: how else would you call a function then calling it? usually you would just redo your design so you did not have to call that many things to update the display
LoneWolf1066: why not have your function take a list of all the (x,y) points and then return a list also?
lonewolf1066kosh: Well, my alternate approach would have been to pass in an array of unsigned bytes, points[800][800][3], and calculate it in python and return it, but wasn't sure how I would convert a multidimensional array to a Python List and back
koshisn't there a way to read a python list of tuples in c++?
LinuxNITany idea why notebook.set_current_page(2) in gtk wont set the notebook page for me?(no errors are reported)
koshLoneWolf1066: sorry but embedding python is not my stroing point, I have generally avoided all c/c++ interfacing with python, mostly because I haven't run into any true need for it
lonewolf1066kosh: Thanks, I might just do it in pure python using the opengl module, since that should be sufficient. My major reason for this approach was to get some experience in the whole embedding/extending area.
wanuis there a winpcap wrapper module in python that does not require visual studio or cygwin?
koshsorry I have no idea about that one
wanui ran into two different wrappers and they both required it
which was bizarre
loufoqueis it planned to merge stackless python into CPython sometime?
koshI don't think so
Malawardoubtful.
dererkHi there
I need a hand arround using db storing data and time variables
Malawaryou using SQLObject or SQLAlchemy?
triplah_wloufoque: what feature do you want?
loufoquecontinuations.
dererkI used datetime.datetime() to store it on TIMESTAMP db value
triplah_wi'd like serialisable generators, but thats about it
loufoque: have you used 2.5's generators?

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 

IrcArchive

NY Lost Funds