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 are:
> 
> 1. Which should I use
spawn and fork are very different functions. Read the documentation on
each.
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

foo()

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <[EMAIL PROTECTED]>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to