
steve+comp.lang.python at pearwood
Aug 13, 2012, 4:38 AM
Post #4 of 8
(157 views)
Permalink
|
|
Re: Threading KeyError in Python 3.3 beta 2?
[In reply to]
|
|
On Mon, 13 Aug 2012 12:24:55 +0100, Blind Anagram wrote: > Here is a fairly short bit of code which produces the exception: > > for pre in ('12', '13', '14', '15', '21' ): > n = int(pre + '543') > s = str(n * n) > if len(set(s)) == 9: > print(n, s) Um, I don't think so. >>> for pre in ('12', '13', '14', '15', '21' ): ... n = int(pre + '543') ... s = str(n * n) ... if len(set(s)) == 9: ... print(n, s) ... 12543 157326849 Since your code doesn't even import threading, let alone use it, I can't imagine how you get an error in threading. -- Steven -- http://mail.python.org/mailman/listinfo/python-list
|