Skip to content

Inconsistent use of tabs and spaces in indentation not always detected #76234

Closed

Description

@serhiy-storchaka
BPO 32053
Nosy @vstinner, @serhiy-storchaka
Superseder
  • bpo-24260: TabError behavior doesn't match documentation
  • 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 2017-11-17.09:14:38.976>
    created_at = <Date 2017-11-16.21:36:43.215>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'Inconsistent use of tabs and spaces in indentation not always detected'
    updated_at = <Date 2017-11-17.09:14:38.976>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2017-11-17.09:14:38.976>
    actor = 'skrah'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-17.09:14:38.976>
    closer = 'skrah'
    components = ['Interpreter Core']
    creation = <Date 2017-11-16.21:36:43.215>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32053
    keywords = []
    message_count = 1.0
    messages = ['306399']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '24260'
    type = 'behavior'
    url = 'https://bugs.python.org/issue32053'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7']

    Activity

    1. serhiy-storchaka commented on Nov 16, 2017

      @serhiy-storchaka
      MemberAuthor
      >>> exec('''if 1:
      ...         print(1)
      ...        \tprint(2)
      ... ''')
      1
      2

      The first indented line uses 8 spaces. The second indented line uses 7 spaces + tabulation. Indentations are different, but TabError is not raised.

    2. added
      3.7 (EOL)
      interpreter-core
      type-bug
      on Nov 16, 2017
    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

      Labels

      3.7 (EOL)interpreter-coretype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions