[SciPy-User] Pickling timeseries Dates

Robert Ferrell ferrell@diablotech....
Thu Dec 10 23:08:24 CST 2009


On Dec 10, 2009, at 8:37 PM, Pierre GM wrote:

> On Dec 10, 2009, at 10:12 PM, Robert Ferrell wrote:
>>>
>> Fernando reminded me that any date scalar will trigger the pickle
>> problem.  Some of my objects have Date instances stashed all over the
>> place.  Converting all those to single-element DateArrays is not
>> feasible.
>
> And converting them to something else, like a datetime or even just  
> a tuple (value,freq)

I often grab a Date from a DateArray.  Of course, I could try to use  
datetime for every date scalar, and DateArray for arrays of dates.   
But that's not nearly as convenient nor robust as using a single  
representation whenever I need a date.

>
>
>>
>> Why can't Date instances be pickled, and how hard would it be to
>> change that?
>
>
> because we never implemented it on the C side, and that'll depend on  
> whether Matt Knox can do it or not.

Understood.



More information about the SciPy-User mailing list