Re: Re: Re: Re: porting unittest.py to Prothon.

Serge Orlov <[email protected]> Thu, 24 Jun 2004 17:33:40 +0400
Newsgroups gmane.comp.lang.prothon.devel
Message-ID <[email protected]>
Mark Hahn wrote:
> Serge Orlov wrote:

>> If the module is just a collection of functions like pyCompat
>> or math, the ability to say "import all functions" is needed.

> OK, I give in.  You win the argument.  It's on the to-do list.  I'm no match
> for you in an argument. :-)

Actually I just asked for the status of this feature. I'm not
absolutely sure about how it should work. See my reply to Greg.
Have you seen pep 328?

from MODULE import NAMES as RENAME searching HOW

> Again you could have used [$AttributeError, $ImportError, ...

I used Python idiom "...".split(). Old habits die hard.

> Why does it make me feel good to see caller being used? :-)

After years of using C and C++ where using stack is a dirty
hack and years of using Python where stack feels like second
class citizen, it feels like fresh air. I don't understand
why such a simple and useful for small internal debuggers
and test frameworks feature is neglected in other languages.
Don't worry, in a month I will find it boring :)


  -- Serge