unittest: Proposal to add failUnlessNear

Christopher T King squirrel at WPI.EDU
Wed Jul 21 09:06:44 EDT 2004


On Tue, 20 Jul 2004, John Roth wrote:

> In addition, you're going to have to do significant
> type checking if you want to combine floats and
> complex in the same method call. That's just
> poor design.

Why would you have to do that?  The Python operators, as well as every 
function in cmath, transparently support both floats and complex numbers 
(as they should).  Every operation between floats and complex numbers is 
well-defined.




More information about the Python-list mailing list