Threading KeyError in Python 3.3 beta 2?
Blind Anagram
noname at nowhere.com
Mon Aug 13 07:51:10 EDT 2012
"Chris Angelico" wrote in message
news:mailman.3223.1344857956.4697.python-list at python.org...
On Mon, Aug 13, 2012 at 9:24 PM, Blind Anagram <noname at nowhere.com> 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.
===============
Thanks to you both for your responses.
Its an IDE issue of some kind (I am using WING).
When I run under a command prompt (or IDLE) all is well.
Sorry to have bothered you.
More information about the Python-list
mailing list