declaration of variables?

Joshua Marshall jmarshal at
Tue Feb 18 15:10:42 CET 2003

Andrew Bennetts <andrew-pythonlist at> wrote:
> On Sun, Feb 16, 2003 at 02:55:48PM +0100, Andr? Jonsson wrote:
>> Also, it may not even be possible to detect by a unit-test, because there 
>> may not be a syntactical error or such that would cause a run-time error, 
>> it just "behaves" strangely (see my example of a _very_ simple case). In a 

> If your unit tests aren't catching weird behaviour, what are they doing? :)

Unit tests are generally written by humans, and may fail to fully test
a program's behavior.  Personally, I find variable declarations
useful.  (What I don't find useful is the ability in some languages to
declare a variable without giving it an initial value.)

More information about the Python-list mailing list