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
> > >> 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
> >> 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
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
> >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,
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
[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.
you can use the threads commands
--
http://mail.python.org/mailman/listinfo/python-list
You could possibly pickle an object and send it, but that could be a
bit messy...
--
http://mail.python.org/mailman/listinfo/python-list