[issue4410] IDLE string problem in Run/Run Module

André report at bugs.python.org
Mon Nov 24 19:16:49 CET 2008

New submission from André <info at orlans-amo.be>:

Python 3.0 rc3 on Windows (Server 2003 US English)

The code with a string including a non ascii character:

s = 'abçd'
print (s)

is returning correct result in console mode and when it's typed in the 
IDLE Python Shell

But when executed from an IDLE editor window with Run/Run Module
it prints 5 characters instead of 4.

With more details, the code:

s = 'abçd'
print (s)

for i in range(len(s)):
    print(hex(ord(s[i])),end=' ')
gives  in console mode:

0x61 0x62 0xe7 0x64

but with Run/Run Module:

0x61 0x62 0xc3 0xa7 0x64

components: IDLE
messages: 76353
nosy: andre
severity: normal
status: open
title: IDLE string problem in Run/Run Module
versions: Python 3.0

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list