On Feb 19, 2:22 pm, "Martin Blume" <[EMAIL PROTECTED]> wrote:
> <[EMAIL PROTECTED]> schrieb
>
> > I have a function called 'test' defined in A.py.
> > How can I call that function test in my another file B.py?
>
> In B.py:
>
> import A
>
> A.test()
>
> HTH
> Martin

But Do I need to put A.py and B.py in the same directory?
if not, where does python look for A.py ?
And do I need to compile A.py before I can import it to B.py?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to