function inclusion problem

Laura Creighton lac at openend.se
Tue Feb 10 19:06:00 EST 2015


In a message of Tue, 10 Feb 2015 15:38:02 -0800, vlyamtsev at gmail.com writes:
>I defined function Fatalln in "mydef.py" and it works fine if i call it from "mydef.py", but when i try to call it from "test.py" in the same folder:
>import mydef
>...
>Fatalln "my test"
>i have NameError: name 'Fatalln' is not defined
>I also tried include('mydef.py') with the same result...
>What is the right syntax?
>Thanks
>-- 
>https://mail.python.org/mailman/listinfo/python-list

from mydef import Fatalln




More information about the Python-list mailing list