Adding more warnings

Frithiof Andreas Jensen frithiof.jensen at diespammerdie.jensen.tdcadsl.dk
Fri Feb 22 13:56:52 CET 2008


"Thomas Dybdahl Ahle" <lobais at gmail.com> skrev i en meddelelse 
news:mailman.1001.1203497818.9267.python-list at python.org...

> Is it possible to make python warn me about those at "compile time"?

No. The compiler only "knows" about it once the broken code is run. I use 
the standard module "unittest" to run through every single bit of Python 
code I write.

Maybe silly, but ... I think it saves me time in the end and forces me to 
think more about my interfaces because one of the early symptoms of stupid 
design is that the test code is a real pain to write. At least Python 
applications tend to be compact compared with C++/Java. 





More information about the Python-list mailing list