declaration of variables?
Joshua Marshall
jmarshal at mathworks.com
Tue Feb 18 09:10:42 EST 2003
Andrew Bennetts <andrew-pythonlist at puzzling.org> 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