Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97426

threading bug in strptime

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <larry.martell@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:bug': 0.05; 'threads,': 0.09; 'thread': 0.10; 'importing': 0.15; 'intermittent': 0.16; 'wall,': 0.16; 'attribute': 0.18; 'issue.': 0.20; 'suggested': 0.20; 'to:name:python-list@python.org': 0.20; 'trying': 0.22; 'seems': 0.23; 'this:': 0.23; 'figure': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; 'workaround': 0.29; 'mention': 0.30; "i'd": 0.31; 'fixed': 0.31; 'anyone': 0.32; 'problem': 0.33; 'received:google.com': 0.35; 'fail': 0.35; 'to:addr:python-list': 0.36; 'there,': 0.37; 'thought': 0.37; 'starting': 0.37; 'to:addr:python.org': 0.40; 'where': 0.40; 'your': 0.60; 'our': 0.64; 'here': 0.66; 'banging': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PvMCMTunCoKdg+xfH2SfAp9L0pRXb3GKsscy45oo2nY=; b=coI63Vsmq9PgI3ajF3qTgxwBovkpapas/1r1ig2WtXUh6NqCtKc60YlWTDY6imMg+b n+BuE/tdgrModlmXSKAWpiQJ7rfiAEk7CkIWHU3DMz5CJ4pVehtNTxHXjlqUS0QMsYqk jvvUPXs7kLJmXYZo4NBDm9rxEMVYa7OirR7vYfn0DQhDNAonp/gDonMv6mQdMXXvgxMt O3i/P/vOm/yfDJGJLe0BT52wfuXgT1TchJGXM6Zbtmqt5xjVfEK2wzWHICuzGbgh2VGD tvltADJbx/811Tpr4s1FwPC9U/X/JGvcDbqakFUpY1VyBSH2WEAoobHWJHm47+udwIB8 Rbqw==
MIME-Version 1.0
X-Received by 10.107.166.201 with SMTP id p192mr37567229ioe.0.1444083093677; Mon, 05 Oct 2015 15:11:33 -0700 (PDT)
Date Mon, 5 Oct 2015 18:11:33 -0400
Subject threading bug in strptime
From Larry Martell <larry.martell@gmail.com>
To "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.404.1444083096.28679.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1444083096 news.xs4all.nl 23726 [2001:888:2000:d::a6]:58253
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97426

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

threading bug in strptime Larry Martell <larry.martell@gmail.com> - 2015-10-05 18:11 -0400

csiph-web