The "if 1" part just makes it not run the lower part of the routine, i.e. it uses the original routine. When that is changed to 0 then it runs the upper part; computes a result using the lower part; asserts that the answers are the same and returns the answer.
Running the top part causes the pickling tests to succeed; running the bottom part causes them to fail. I get the same result with and without a wrapping function named "my". If the answers are the same in upon exit, then something most be getting modified globally by what is happening below. Isn't there are Sherlock Holmes aphorism about this? Ah yes, "When you've eliminated the impossible, whatever remains, no matter how improbable, must be the truth." -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
