Re: at what complexity, a comparison fails ?

2008-01-01 Thread Stef Mientki
Robert Kern wrote: Stef Mientki wrote: hello, I had a program that worked perfectly well. In this program modules were dynamically added, just by putting the file in a predefined directory. Now one of the interface mechanisms was to see if some parameter was changed in a an instance,

at what complexity, a comparison fails ?

2007-12-31 Thread Stef Mientki
hello, I had a program that worked perfectly well. In this program modules were dynamically added, just by putting the file in a predefined directory. Now one of the interface mechanisms was to see if some parameter was changed in a an instance, by comparing the value from the instance with its

Re: at what complexity, a comparison fails ?

2007-12-31 Thread Marc 'BlackJack' Rintsch
On Mon, 31 Dec 2007 11:45:55 +0100, Stef Mientki wrote: Now one of the interface mechanisms was to see if some parameter was changed in a an instance, by comparing the value from the instance with its previous value This went all well, untill I added a too complex variable, then the

Re: at what complexity, a comparison fails ?

2007-12-31 Thread Steven D'Aprano
On Mon, 31 Dec 2007 11:45:55 +0100, Stef Mientki wrote: hello, I had a program that worked perfectly well. In this program modules were dynamically added, just by putting the file in a predefined directory. Now one of the interface mechanisms was to see if some parameter was changed in a

Re: at what complexity, a comparison fails ?

2007-12-31 Thread Zentrader
On Dec 31, 2:45 am, Stef Mientki [EMAIL PROTECTED] wrote: So what I need was something like: if A != A_prev : ... do something A_prev = A If A_prev is not declared prior to the if statement, you will get an error when you try to compare the non-existing variable to A.

Re: at what complexity, a comparison fails ?

2007-12-31 Thread Hans Nowak
Stef Mientki wrote: hello, I had a program that worked perfectly well. In this program modules were dynamically added, just by putting the file in a predefined directory. Now one of the interface mechanisms was to see if some parameter was changed in a an instance, by comparing the

Re: at what complexity, a comparison fails ?

2007-12-31 Thread Robert Kern
Stef Mientki wrote: hello, I had a program that worked perfectly well. In this program modules were dynamically added, just by putting the file in a predefined directory. Now one of the interface mechanisms was to see if some parameter was changed in a an instance, by comparing the