On Jul 18, 2008, at 4:00 PM, Zhiwen Liang wrote:
So that's what Line 102-103 in viewers/__init__.py do.
Yes, I know. I wrote it. Can I suggest that both of our time would be better spent if you sent me the specific output that I asked for rather than trying figure out and then explain to me how my own code works?
But I am not sure why "remove" will use "__nonzero__".
Nor am I. Python 2.4 and 2.5 don't do this. I suspect that it was a bug, or at least a bad design, in Python 2.3. As Daniel has said, Python 2.3 is quite old (3 1/2 years, now) and you would likely benefit in many ways from not using something so obsolete.
I tried "vars.remove(var)" in an older version of fipy and it works fine.
Variable.__nonzero__() was only introduced about a month ago.
I am still checking my other installation problems to see if I made some stupid mistakes.
Again. Please, Please, *PLEASE* send me the output that I asked for. What does
>>> import pylab >>> pylab.__file__ output? Seriously. I want to know.
