En Mon, 17 Dec 2007 01:53:24 -0300, <[EMAIL PROTECTED]> escribió:

> On Dec 16, 8:47 pm, [EMAIL PROTECTED] wrote:
>>    ncalls  tottime  percall  cumtime  percall filename:lineno(function)
>>     57765    6.020    0.000   12.970    0.000  
>> /usr/lib64/python2.4/_strptime.py:273(strptime)
>> ...
>
> actually, the C-version of strptime() is also getting called:
>     57765    0.960    0.000   13.940    0.000 :0(strptime)
>
> that's pretty confusing. Does the Python version call the C-version
> (or the other way around)?

The other way. The strptime function inside the time module (timemodule.c)  
just calls the strptime function written in Python (_strptime.py).
I have no idea why it's so slow in your case.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to