Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.04; 'subject:Python': 0.05; 'exception.': 0.07; 'exception:': 0.09; 'aug': 0.13; 'code?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'idle.': 0.16; 'subject:3.3': 0.16; 'subject:beta': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'bit': 0.21; 'import': 0.21; 'fairly': 0.21; 'not,': 0.21; 'received:209.85.214.174': 0.21; 'pre': 0.22; 'produces': 0.22; 'downloaded': 0.24; 'script': 0.24; 'header:In- Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'code': 0.31; 'file': 0.32; 'running': 0.32; 'problem': 0.33; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'saved': 0.35; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'anything': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'short': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'here': 0.65; 'box,': 0.69; 'pasting': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=c1Xx6F45kRzSSddfjEHc39+TFhz0wNU+ad9Opwg0scI=; b=tRWOnYygCt/aUfrxlzpo10caVPoRQb9hI+Pv75F/uspbDjh3CggTaFm8HZEw9vU5Zh KT5Bb/K5+pQzOLiadB/ZL27p99sTUJsf4nNwvQ/WYVub+CWuMaw9ghq22O7vDgK/4KQx Gw8XbZS4xpypQqVft4aCFnTiniKRquvhvW3UTabPmV0o90U51vPbHF6hY2lPc/nX7w2W vFPiNB3XPri4ayBMZzjMxnr7qtbWM7EGVSrMUu3tjrBlzcnjyMo88sFKZnpPpMY2G5bQ P8pG3a7NC53B+5Wn0mbABTRfwK+txEKYqM9lAI5Fr8K1dnpDOBhcG/fKi2J9ZWk8reVM J+8g== MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 13 Aug 2012 21:39:13 +1000 Subject: Re: Threading KeyError in Python 3.3 beta 2? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1344857956 news.xs4all.nl 6858 [2001:888:2000:d::a6]:46619 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26980 On Mon, Aug 13, 2012 at 9:24 PM, 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) Interesting. I just downloaded a clean 3.3 onto this Windows box, saved your script to a file ("booom.py" hehe), and ran it - no exception. Same thing pasting that code into the interactive interpreter or idle. Did you import anything before running that code? If not, it may be a site.py problem or something. ChrisA