Thanks, it works.
And thanks for your comments which are worth to think about :)
Petr
> This has nothing to do with your previous problem. Use
>
> from __main__ import myFunction, myOtherFunction, ...
>
> or
>
> from __main__ import *
>
> if you prefer "namespace pollution paradise"*.
>
> Again, i
petr.jakes.tpc wrote:
> thanks for your reply. I will try to live with the
>
import __main__ as displeje_pokus
>
> in the text file.
Why?
> Anyway, using this, it looks like I have to assign all functions/
> methods to a local name like:
>
> myFunction=displeje_pokus.myFunction
>
> to
On Dec 22, 7:05 pm, Peter Otten <[EMAIL PROTECTED]> wrote:
> petr.jakes.tpc wrote:
While you could either alter the textfile to
>
> >>> import __main__ as displeje_pokus
>
> or the module along the lines of
>
> # not recommended!
> from displeje_pokus import TextyDispleje
> if __name__ == "__main__
petr.jakes.tpc wrote:
> Hi,
>
> inspired by the article written by Tarek Ziade in the February 07
> issue of the "Linux +" magazine I am experimenting with the doctest
> module.
>
> I have two files, "displeje_pokus.py" and "displeje_pokus.txt" (you
> can see the simplified contents of the files
Hi,
inspired by the article written by Tarek Ziade in the February 07
issue of the "Linux +" magazine I am experimenting with the doctest
module.
I have two files, "displeje_pokus.py" and "displeje_pokus.txt" (you
can see the simplified contents of the files bellow).
When I run "python displeje_