Threads and time.strptime()

Maximilian Michel maximilian.michel at gmail.com
Tue Jul 4 04:08:24 EDT 2006


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 recognized.
> >
> > But if I let the same code run in a thread, with the same file as input
> > I get the following error:
>
> do you read the logfile in the thread too or pass the read that to the
> thread?




More information about the Python-list mailing list