Subject: Re: [ecasound] development release: 2.1dev2
From: janne halttunen (jhalttun_AT_pp.htv.fi)
Date: Mon Oct 15 2001 - 14:26:38 EEST
On Sun, 14 Oct 2001, Kai Vehmanen wrote:
> 14102001 (v2.1dev2)
> - fixed: misplaced tab prevented eci.py from working
> with python 2.1 (nested scopes)
Actually, it was just one line from the test block misplaced.
In python modules, there's usually some tests in the end of a module,
that are enclosed in:
This block executes when the module is called as the main routine:
$ python eci.py
When a module is imported, all code with no indentation gets executed,
so it's wise to put the tests inside this special block.
I guess this sort of errors is the price to pay for the convenience of not
having to write parentheses around the blocks.
-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request_AT_wakkanet.fi>.
This archive was generated by hypermail 2b28 : Mon Oct 15 2001 - 14:23:44 EEST