Re: Threads and time.strptime()

2006-07-04 Thread Maximilian Michel
Thank you so much! (2) was the reason! Without threads, locale.getlocale() returns (None, None), while calling it in this thread gives back ('de_DE', 'iso-8859-15'). I'm still curious, why this occurs, but anyway it's fixable with setlocale(LC_ALL, 'C'); so normally Python doesn't set locales accor

Re: Threads and time.strptime()

2006-07-04 Thread Maximilian Michel
The parsing thread reads also the file from the disk. placid wrote: > Maximilian Michel wrote: > > Hi all, > > > > I have an interesting problem: > > I have written code, that reads a logfile and parses it for date string > > (Thu Jun 29 14:01:23 2006). > > Standalone everthing works fine, all is

Re: Threads and time.strptime()

2006-07-03 Thread John Machin
On 3/07/2006 6:57 PM, Maximilian Michel wrote: > Hi all, > > I have an interesting problem: > I have written code, that reads a logfile and parses it for date string > (Thu Jun 29 14:01:23 2006). > Standalone everthing works fine, all is recognized. > > But if I let the same code run in a thread,

Re: Threads and time.strptime()

2006-07-03 Thread placid
Maximilian Michel wrote: > Hi all, > > I have an interesting problem: > I have written code, that reads a logfile and parses it for date string > (Thu Jun 29 14:01:23 2006). > Standalone everthing works fine, all is recognized. > > But if I let the same code run in a thread, with the same file as