threading bug in strptime

Larry Martell larry.martell at gmail.com
Mon Oct 5 18:11:33 EDT 2015


We have been trying to figure out an intermittent problem where a
thread would fail with this:

AttributeError: 'module' object has no attribute '_strptime'

Even though we were importing datetime. After much banging our heads
against the wall, we found this:

http://code-trick.com/python-bug-attribute-error-_strptime/

The workaround suggested there, to call strptime before starting your
threads, seems to have fixed the issue.

I thought I'd mention it here in case anyone else is facing this.



More information about the Python-list mailing list