how to overload sqrt in a module?

Robert Kern robert.kern at gmail.com
Fri Mar 3 01:20:26 EST 2006


Michael McNeil Forbes wrote:

> Are there any other more generic solutions (without having to write 
> "custom" functions like numpy.sqrt)?

No. *Someone* always has to write those "custom" functions. In the case of len()
and abs(), that someone was Guido. For numpy.sqrt(), that someone was Travis
Oliphant. For anything else you want, that someone is probably you.

-- 
Robert Kern
robert.kern at gmail.com

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




More information about the Python-list mailing list