homepage

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 ccorbacho
Recipients ccorbacho
Date 2011年02月03日.21:08:06
SpamBayes Score 8.739254e-09
Marked as misclassified No
Message-id <1296767289.19.0.293158150558.issue11108@psf.upfronthosting.co.za>
In-reply-to
Content
time.strptime() intermittently (and I mean _really_ intermittently) throws an AttributeError.
Steps to reproduce:
Run the attached script (you may have to do this quite a lot of times; in an evening of trying, I could only trigger this bug once...) - this just starts lots of threads so that we have lots of time.strptime()'s running in parallel.
Expected:
It just keeps running every time.
Actual:
On one run, the script bailed out almost immediately -
ccorbacho@valkyrie:~/chroots/trunk/home/ccorbacho/scratch/ccorbacho$ python test_time.py
Exception in thread Thread-2:
Traceback (most recent call last):
 File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
 self.run()
 File "test_time.py", line 13, in run
 time.strptime("30 Nov 00", "%d %b %y")
AttributeError: _strptime_time
---
This is with Python 2.6.6. However, at work we have been seeing this very intermittently with Python 2.5 in threaded code doing time.strptime() as well (though we just get AttributeError: strptime, but I don't have any code I can provide to reproduce on 2.5), hence I'm raising the bug.
History
Date User Action Args
2011年02月03日 21:08:09ccorbachosetrecipients: + ccorbacho
2011年02月03日 21:08:09ccorbachosetmessageid: <1296767289.19.0.293158150558.issue11108@psf.upfronthosting.co.za>
2011年02月03日 21:08:06ccorbacholinkissue11108 messages
2011年02月03日 21:08:06ccorbachocreate

AltStyle によって変換されたページ (->オリジナル) /