New submission from Armin Rigo:

In the interactive prompt:

>>> if 1:
... <press tab here>

Pressing tab here should just insert 4 spaces. It makes no sense to display all 
500 possible "completions" of the empty word, and using tab to indent is a very 
common feature of any editor with a Python mode.

Patch attached.

----------
components: Library (Lib)
files: rlcompleter_tab2space.diff
keywords: patch
messages: 235733
nosy: arigo
priority: normal
severity: normal
status: open
title: rlcompleter: tab on empty prefix => insert spaces
type: enhancement
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file38093/rlcompleter_tab2space.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23441>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to