"no variable or argument declarations are necessary."

Steve Holden steve at holdenweb.com
Mon Oct 3 12:43:35 EDT 2005


en.karpachov at ospaz.ru wrote:
> On 3 Oct 2005 13:58:33 GMT
> Antoon Pardon wrote:
> 
> 
>>People often promote unittesting here. Writing all those unittest is
>>an added burden too. But people think this burden is worth it.
>>
>>I think writing declaration is also worth it. The gain is not as
>>much as with unittesting but neither is the burden, so that
>>balances out IMO
> 
> 
> +1
> 
> Some people just don't get the simple fact that declarations are
> essentially kind of unit test you get for free (almost), and the compiler
> is a testing framework for them.
> 
Hmm. Presumably introspection via getattr() is way too dangerous, then? 
Might as well throw the function away ...

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list