too dynamic - how to avoid?

John J. Lee jjl at pobox.com
Thu Oct 2 14:03:47 EDT 2003


"mic" <aldo123 at onet.pl> writes:

> I've spent last hour trying to debug my code, when I found out that instead
> of executing object's method I accidentaly overridden it with variable (see
> below example). My stupid! But as the system becomes more complex, I begun
> to wonder how to avoid such situations in the future. Does anybody have some
> experiences about that?

I don't understand how that could cause a problem.  Why didn't you
immediately get a traceback with a message something like 'a is not
callable'?


John




More information about the Python-list mailing list