program attached Re: reference count problems
Robert Kern
robert.kern at gmail.com
Wed Nov 15 15:41:44 CST 2006
Mathew Yeates wrote:
> def delta2day1(delta):
> return delta.days/365.0
> deltas2days=numpy.frompyfunc(delta2day1,1,1)
If I had to guess where the problem is, it's here. frompyfunc() and vectorize()
have always been tricky beasts to get right.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
More information about the Numpy-discussion
mailing list