spawn or fork
csgcsg39 at hotmail.com
Wed Dec 8 12:39:37 CET 2004
"Miki Tebeka" <miki.tebeka at zoran.com> wrote in message
news:mailman.7359.1102503309.5135.python-list at python.org...
> Hello Colin,
> > I have a function
> > def printHello():
> > fp = open('file','w')
> > fp.write('hello')
> > fp.close()
> > I would like to call that function using spawn or fork. My questions
> > 1. Which should I use
> spawn and fork are very different functions. Read the documentation on
> Note the "fork" is available only in Unix like systems.
> > 2. How do I call that function if it is defined in the same file.
> Just call it.
> def foo():
> print 1
Thanks, but can I call it using spawn?
More information about the Python-list