Den 14-07-08 19:23, Skip Montanaro skrev:

In addition to what others have written, I will add one thing. There
are certainly situations where raising an exception is bad. Consider
all the people in the scientific computing community doing fancy
linear algebra sorts of things, often with missing data. They
generally want NaN propagated and not have some long running
calculation crash in the middle.

NaN!=NaN doesn't cause NaN's to propagate any more or any less. It simply causes a different branch of code to run, quite often the wrong one.

regards, Anders

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to