function inclusion problem

blue catalinfest at gmail.com
Fri Feb 27 15:11:58 EST 2015


On Wednesday, February 11, 2015 at 1:38:12 AM UTC+2, vlya... at gmail.com wrote:
> 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

...try to set your python utf-8 encode .
and read the FAQ or python manual 



More information about the Python-list mailing list