Re: pythonic exec* spawn*

2006-02-13 Thread Nick Craig-Wood
Daniel Nogradi <[EMAIL PROTECTED]> wrote: > Is it possible to pass a python object to a python program as > argument? Yes - you can pickle it. http://www.python.org/doc/2.4.2/lib/module-cPickle.html You can pickle just about anything into a string and unpickle it back into python objects. Y

Re: pythonic exec* spawn*

2006-02-11 Thread Daniel Nogradi
> > >> os.fork() does that (on Mac and Unix). > > > > > >Okay, but how? > > > > Sorry, fork() is implemented strictly on a 'need to know' basis :-) > > > > >It seems to me that if the process which issued os.fork() ends, then > > >the forked process also ends. > > > > No, no, they're not a quantum

Re: pythonic exec* spawn*

2006-02-10 Thread Daniel Nogradi
> >> os.fork() does that (on Mac and Unix). > > > >Okay, but how? > > Sorry, fork() is implemented strictly on a 'need to know' basis :-) > > >It seems to me that if the process which issued os.fork() ends, then > >the forked process also ends. > > No, no, they're not a quantum mechanic photon pair

Re: pythonic exec* spawn*

2006-02-09 Thread Rene Pijlman
Daniel Nogradi: >> os.fork() does that (on Mac and Unix). > >Okay, but how? Sorry, fork() is implemented strictly on a 'need to know' basis :-) >It seems to me that if the process which issued os.fork() ends, then >the forked process also ends. No, no, they're not a quantum mechanic photon pair

Re: pythonic exec* spawn*

2006-02-09 Thread Daniel Nogradi
> >I would like to pass the whole object at once to the second python > >program which should start doing its thing with it while the original > >program should keep running. > > os.fork() does that (on Mac and Unix). > Okay, but how? It seems to me that if the process which issued os.fork() ends,

Re: pythonic exec* spawn*

2006-02-09 Thread Rene Pijlman
Daniel Nogradi: >I would like to pass the whole object at once to the second python >program which should start doing its thing with it while the original >program should keep running. os.fork() does that (on Mac and Unix). -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonic exec* spawn*

2006-02-09 Thread dwelch
[EMAIL PROTECTED] wrote: > You could possibly pickle an object and send it, but that could be a > bit messy... > pickle it (or shelve?) and then pass the pickle/shleve filename to the other process as a command line parameter? Not sure if this would work or not, but that's where I would start.

Re: pythonic exec* spawn*

2006-02-09 Thread Jeremiah
you can use the threads commands -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonic exec* spawn*

2006-02-09 Thread kmkz89
You could possibly pickle an object and send it, but that could be a bit messy... -- http://mail.python.org/mailman/listinfo/python-list