[SciPy-user] Python number handling?

Robert Kern rkern at ucsd.edu
Wed Aug 10 18:30:36 CDT 2005


Lance Boyle wrote:

> Yes. But what about a / b given that a and b are dynamically typed?

It's handled by their types' coercion rules and __truediv__ definitions 
(or __div__ if __truediv__ isn't defined).

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter



More information about the SciPy-user mailing list