Skip to content

IDLE string problem in Run/Run Module #48660

Closed

Description

@andre
mannequin
BPO 4410
Nosy @loewis
Superseder
  • bpo-4008: IDLE: checksyntax() doesn't support Unicode?
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-12-29.19:42:25.114>
    created_at = <Date 2008-11-24.18:16:49.298>
    labels = ['expert-IDLE']
    title = 'IDLE string problem in Run/Run Module'
    updated_at = <Date 2008-12-29.19:42:25.113>
    user = 'https://bugs.python.org/andre'

    bugs.python.org fields:

    activity = <Date 2008-12-29.19:42:25.113>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-12-29.19:42:25.114>
    closer = 'loewis'
    components = ['IDLE']
    creation = <Date 2008-11-24.18:16:49.298>
    creator = 'andre'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 4410
    keywords = []
    message_count = 2.0
    messages = ['76353', '78478']
    nosy_count = 2.0
    nosy_names = ['loewis', 'andre']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '4008'
    type = None
    url = 'https://bugs.python.org/issue4410'
    versions = ['Python 3.0']

    Activity

    1. andre commented on Nov 24, 2008

      andremannequin
      MannequinAuthor

      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

    2. loewis commented on Dec 29, 2008

      loewismannequin
      Mannequin

      This is a duplicate of bpo-4008

    3. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions