Re: problem with eval and time

2012-11-05 Thread Dave Angel
On 11/05/2012 11:29 PM, Wincent wrote: (Please don't top-post. it messes everything up. And your use of Google-groups is making everything double-spaced) > Thanks. > > I fetch data from social networking sites and want to mark the time of > access. I store all the information in a redis databa

Re: problem with eval and time

2012-11-05 Thread Chris Angelico
On Tue, Nov 6, 2012 at 3:29 PM, Wincent wrote: > Thanks. > > I fetch data from social networking sites and want to mark the time of > access. I store all the information in a redis database, which converts > everything into strings and I need to convert those strings back to original > python o

Re: problem with eval and time

2012-11-05 Thread Wincent
Thanks. I fetch data from social networking sites and want to mark the time of access. I store all the information in a redis database, which converts everything into strings and I need to convert those strings back to original python objects when analyzing the data. Best Regards On Tuesday,

Re: problem with eval and time

2012-11-05 Thread alex23
On Nov 6, 1:32 pm, Wincent wrote: > Dear all, I would like to convert tstr to representation > of time, but encounter the following error. Is there a > simple way to get what I want? Thanks. > > >>> import time > >>> tstr = str(time.localtime()) > >>> eval(tstr) > > Traceback (most recent call las

problem with eval and time

2012-11-05 Thread Wincent
Dear all, I would like to convert tstr to representation of time, but encounter the following error. Is there a simple way to get what I want? Thanks. >>> import time >>> tstr = str(time.localtime()) >>> eval(tstr) Traceback (most recent call last): File "", line 1, in File "", line 1, in T