This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hideaki_t
Recipients eric.araujo, hideaki_t, rheise
Date 2012-11-03.20:08:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351973307.53.0.752546966179.issue10796@psf.upfronthosting.co.za>
In-reply-to
Content
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 word delimitors of GNU readline is "\t\n\"\\'`@$><=;|&{(" and perl binding does not change it.

when I remove dash from delims like below, it works.

   >>> readline.set_completer_delims(readline.get_completer_delims().replace('-', ''))
   >>> input()
   a-
   a-bc  a-de
   a-
History
Date User Action Args
2012-11-03 20:08:27hideaki_tsetrecipients: + hideaki_t, eric.araujo, rheise
2012-11-03 20:08:27hideaki_tsetmessageid: <1351973307.53.0.752546966179.issue10796@psf.upfronthosting.co.za>
2012-11-03 20:08:27hideaki_tlinkissue10796 messages
2012-11-03 20:08:27hideaki_tcreate