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
- function inclusion problem vlyamtsev
- Re: function inclusion problem sohcahtoa82
- Re: function inclusion problem Steven D'Aprano
- Re: function inclusion problem Michael Torrie
- Re: function inclusion problem Ian Kelly
- Re: function inclusion problem sohcahtoa82
- Re: function inclusion problem Laura Creighton
- Re: function inclusion problem Laura Creighton
- Re: function inclusion problem Victor L
- Re: function inclusion problem Dave Angel
- Re: function inclusion problem Tim Chase