hideaki added the comment:
I think this is the default behavior of readline module.
the default word delimiters for completion contains dash(-). so completion
breaks at dash.
import readline
readline.get_completer_delims()
' \t\n`~!@#$%^*()-=+[{]}\\|;:\',/?'
In contrast, the default
Éric Araujo added the comment:
I think I get it: Python sets custom delimiters that include '-' because for
the Python REPL, it’s not possible to have one identifier with a dash, so it’s
considered a delimiter and when you press tab, a new completion is started.
For a custom REPL however,
Éric Araujo mer...@netwok.org added the comment:
I can’t reproduce with 2.7 or 3.2 with a readline module linked to GNU readline.
--
nosy: +eric.araujo
versions: -Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
New submission from rheise ralfhe...@freenet.de:
Python's readline library generates out of the choices provided by a custom
completion function the wrong terminal input. Say, the completion function
suggests 'foobar' and 'foobaz' as matching completion strings, readline should
produce the