Threading KeyError in Python 3.3 beta 2?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Mon Aug 13 07:38:53 EDT 2012


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



More information about the Python-list mailing list