Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDLE 2.713 on debian 9.6 over WSL W10 IdentationError #79998

Closed
audricd mannequin opened this issue Jan 24, 2019 · 2 comments
Closed

IDLE 2.713 on debian 9.6 over WSL W10 IdentationError #79998

audricd mannequin opened this issue Jan 24, 2019 · 2 comments
Assignees
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@audricd
Copy link
Mannequin

audricd mannequin commented Jan 24, 2019

BPO 35817
Nosy @terryjreedy, @audricd
Files
  • py27debian9wslw10indentationerror.PNG: screenshot of the issue. Working on native W10 and non working on Debian 9 WSL
  • 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 = 'https://github.com/terryjreedy'
    closed_at = <Date 2019-01-24.18:00:42.579>
    created_at = <Date 2019-01-24.11:04:12.787>
    labels = ['expert-IDLE', 'type-bug', 'invalid']
    title = 'IDLE 2.713 on debian 9.6 over WSL W10 IdentationError'
    updated_at = <Date 2019-01-24.18:00:42.578>
    user = 'https://github.com/audricd'

    bugs.python.org fields:

    activity = <Date 2019-01-24.18:00:42.578>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2019-01-24.18:00:42.579>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2019-01-24.11:04:12.787>
    creator = 'audricd'
    dependencies = []
    files = ['48076']
    hgrepos = []
    issue_num = 35817
    keywords = []
    message_count = 2.0
    messages = ['334293', '334312']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'audricd']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue35817'
    versions = ['Python 2.7']

    @audricd
    Copy link
    Mannequin Author

    audricd mannequin commented Jan 24, 2019

    Hello,

    The screenshot attached is a clear repro.

    Environment:
    Surface Pro 3 Win 10 1803 Python 2.7.14
    WSL Debian 9.6 with Python 2.7.13

    Code:

    >elements = []
    >for i in range(0, 6):
    >...elements.append(i)

    -------------------------------

    Working:

    >print elements
    >[0, 1, 2, 3, 4, 5]

    Non working:
    File "<stdin>", line 2
    elements.append(i)
    ^
    IndentationError: expected an indented block

    @audricd audricd mannequin assigned terryjreedy Jan 24, 2019
    @audricd audricd mannequin added topic-IDLE type-bug An unexpected behavior, bug, or error labels Jan 24, 2019
    @terryjreedy
    Copy link
    Member

    In the Debian screenshot with the traceback, you run interactive Python, not IDLE, in the system terminal, with the command-line entry 'python'. Notice the secondary ... prompt.

    The bug in the code you entered is indicated by the error message. In interactive Python you have to indent the bodies of compound statements yourself. (IDLE does this for you with its 'smart indent' feature.) In the future, please ask questions about exception messages (and Python in general) on python-list or elsewhere. Perhaps you should also reread the Python Tutorial.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant