➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: IDLE string problem in Run/Run Module
类型: Stage:
Components: IDLE Versions: Python 3.0
process
状态: closed Resolution: duplicate
Dependencies: 后续: IDLE: checksyntax() doesn't support Unicode?
View: 4008
分配给: 抄送列表: andre, loewis
优先级: normal 关键字:

Created on 2008-11-24 18:16 by andre, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg76353 - (view) Author: André (andre) 日期: 2008-11-24 18:16
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:

abçd
0x61 0x62 0xe7 0x64

but with Run/Run Module:

abçd
0x61 0x62 0xc3 0xa7 0x64
msg78478 - (view) Author: Martin v. Löwis (loewis) * (Python committer) 日期: 2008-12-29 19:42
This is a duplicate of issue 4008
历史
日期 用户 动作 参数
2022-04-11 14:56:41admin修改github: 48660
2008-12-29 19:42:25loewis修改状态: open -> closed
resolution: duplicate
后续: IDLE: checksyntax() doesn't support Unicode?
消息: + msg78478
抄送: + loewis
2008-11-24 18:16:49andre创建