Skip to content

Tab indent no longer works in interpreter #66284

Closed

Description

@Azendale
mannequin
BPO 22086
Nosy @terryjreedy, @pitrou, @ezio-melotti, @bitdancer, @vadmium
Superseder
  • bpo-23441: rlcompleter: tab on empty prefix => insert spaces
  • Files
  • py34.png: on "..." prompt line, when press tag
  • 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 2015-06-13.20:07:46.509>
    created_at = <Date 2014-07-26.17:34:20.382>
    labels = ['type-bug', 'library']
    title = 'Tab indent no longer works in interpreter'
    updated_at = <Date 2021-10-23.21:13:03.600>
    user = 'https://bugs.python.org/Azendale'

    bugs.python.org fields:

    activity = <Date 2021-10-23.21:13:03.600>
    actor = 'yaubi'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-06-13.20:07:46.509>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2014-07-26.17:34:20.382>
    creator = 'Azendale'
    dependencies = []
    files = ['36367']
    hgrepos = []
    issue_num = 22086
    keywords = []
    message_count = 6.0
    messages = ['224081', '224524', '225289', '234911', '235736', '245327']
    nosy_count = 8.0
    nosy_names = ['terry.reedy', 'pitrou', 'ezio.melotti', 'r.david.murray', 'martin.panter', 'Azendale', 'caffhuang', 'Ishan.Khare']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '23441'
    type = 'behavior'
    url = 'https://bugs.python.org/issue22086'
    versions = ['Python 3.4', 'Python 3.5']

    Activity

    1. Azendale commented on Jul 26, 2014

      Azendalemannequin
      MannequinAuthor

      Please see http://bugs.python.org/issue5845, especially the last two comments: http://bugs.python.org/issue5845#msg215784, which requested that a new bug report be opened for this issue.

      To summarize, the previous bug was to enable tab completion in the interpreter. There was discussion and it was figured out that it could be arranged that tab indentation and completion could work at the same time. (If you are at the start of a line, possibly a "... " prompt line, tab should indent. If you are to the right of any non-whitespace character, then you should tab complete).

      From the other bug:

      "This issue [tab indent] should have gone back to being a release blocker after the alpha release to fix the tab-as-indent issue, but obviously that didn't happen (I forgot about it myself). Please open a new issue requesting a fix for this bug (that tab doesn't work as indent at the ... prompt), referencing the discussion in this issue."

    2. added
      stdlib
      type-bug
      on Jul 26, 2014
    3. terryjreedy commented on Aug 1, 2014

      @terryjreedy
      Member

      This is a *nix issue only, as tab completion is not active on Windows (except with Idle).

    4. caffhuang commented on Aug 13, 2014

      caffhuangmannequin
      Mannequin

      It happens on my Windows 7 x64, Python 3.4.1, command shell. (IDLE works fine).

    5. IshanKhare commented on Jan 28, 2015

      IshanKharemannequin
      Mannequin

      what is the current state of this issue, reading the http://bugs.python.org/issue5845 and its changesets, it seems that all the changes that were made during that issue no longer exists, like:
      fix-5845.diff -> adds a function named enablerlcompleter (as specified in diff) in file Lib/site.py , which i cannot find in current Lib/site.py (https://hg.python.org/cpython/file/1addc4f0f10c/Lib/site.py)

    6. vadmium commented on Feb 11, 2015

      @vadmium
      Member

      Patch at bpo-23441

    7. bitdancer commented on Jun 13, 2015

      @bitdancer
      Member

      In between this issue being opened and that fact being noted on the original issue, bpo-23441 was opened, and I noticed that one and set it to release blocker. That issue has a patch, as noted, so I'm closing this one as a duplicate.

    8. 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

      stdlibtype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions