18 Dec
2005
18 Dec
'05
8:37 p.m.
On 12/18/05, Jan-Ole Esleben <esleben@gmail.com> wrote:
I strongly doubt it. Zope does not "inspect code". There must be a problem in your testing. Note that if self.a is a standard list, the self.a.append(1) doesn't have any impact on the persistence mechanism or transactions either.
Please, try it out. Delete the if clause and the append in it.
No, Zope does not do any code analysis. Code gets executed or not, and that's it. If you observe behaviour you can only explain by assuming un-executed code to have side-effects, you will have to re-examine your assumptions. Get a good debugger instead. -- Martijn Pieters