program attached Re: reference count problems

Mathew Yeates myeates at
Wed Nov 15 16:20:37 CST 2006

Robert Kern wrote:
> 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.
It appears the problem is, in fact, with frompyfunc. I'm still running 
but I'm not seeing the immediate loss of memory as I was before. I 
replaced the frompyfunc with a simple loop.

Thanks for all  the help.

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash

More information about the Numpy-discussion mailing list