Re: doctest + sqlobject (TDD)

2007-12-22 Thread petr . jakes . tpc
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

Re: doctest + sqlobject (TDD)

2007-12-22 Thread Peter Otten
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

Re: doctest + sqlobject (TDD)

2007-12-22 Thread petr . jakes . tpc
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__

Re: doctest + sqlobject (TDD)

2007-12-22 Thread Peter Otten
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

doctest + sqlobject (TDD)

2007-12-22 Thread petr . jakes . tpc
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_