"Chris Angelico" wrote in message news:mailman.3223.1344857956.4697.python-l...@python.org...

On Mon, Aug 13, 2012 at 9:24 PM, Blind Anagram <non...@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.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to