This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author facundobatista
Recipients facundobatista, kakacek, tim.golden
Date 2007-10-26.02:38:22
SpamBayes Score 0.0009141266
Marked as misclassified No
Message-id <1193366303.28.0.816398794515.issue1255@psf.upfronthosting.co.za>
In-reply-to
Content
The deadlock happens because strptime has an import inside it, and
recursive imports are not allowed in different threads.

As a general rule and good coding style, don't run your code when the
module is imported, but put it in a function like "main" in the second
file,import it and call it from the first one. This will solve your problem.

Note that this happens to you with strptime, but could happen with a
lot, *a lot*, of functions that do this internal import of something
else. So, you'll never be sure.

You can follow the python-dev thread titled "Deadlock by a second import
in a thread" for more info.
History
Date User Action Args
2007-10-26 02:38:23facundobatistasetspambayes_score: 0.000914127 -> 0.0009141266
recipients: + facundobatista, tim.golden, kakacek
2007-10-26 02:38:23facundobatistasetspambayes_score: 0.000914127 -> 0.000914127
messageid: <1193366303.28.0.816398794515.issue1255@psf.upfronthosting.co.za>
2007-10-26 02:38:23facundobatistalinkissue1255 messages
2007-10-26 02:38:22facundobatistacreate