how to follow python polymorphism standards with math functions

Posted by krishnab on Programmers See other posts from Programmers or by krishnab
Published on 2013-06-28T01:48:39Z Indexed on 2013/06/28 4:28 UTC
Read the original article Hit count: 456

Filed under:
|

So I am reading up on python in Mark Lutz's wonderful LEARNING PYTHON book. Mark makes a big deal about how part of the python development philosophy is polymorphism and that functions and code should rely on polymorphism and not do much type checking. However, I do a lot of math type programming and so the idea of polymorphism does not really seem to apply--I don't want to try and run a regression on a string or something. So I was wondering if there is something I am missing here. What are the applications of polymorphism when I am writing functions for math--or is type checking philosophically okay in this case.

© Programmers or respective owner

Related posts about python

Related posts about polymorphism