On Wed, 01 Aug 2007 16:55:53 +0000, Stargaming wrote:

>> Thirdly: This sort of testing is precisely what unit tests and/or
>> doctests are for.
> 
> Huh? What beginner is doing there seems more like input validation than 
> testing. Unit or doctests are meant for testing (and in case of doctests, 
> showing) whether a function works as expected.

If it is input validation I wouldn't expect it protected by a ``if
__debug__:``.  That looks more like debugging/testing.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to