Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cmd.Cmd completion fails in some cases, must allow the definition of readline completion delimiters #120479

Open
Labels
stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error
@diegorubert

Description

@diegorubert

Bug report

Bug description:

cmd.Cmd does not allow the definition of readline completion delimiters, therefore,complete_*() methods will fail with completion options containing dashes (or other characters in readline's default list of delimiters).

Defining aCmd.completer_delims (by defaultNone) and then callingreadline.set_completer_delims(self.completer_delims) (ifCmd.completer_delims is notNone) after importing readline will do the trick.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp