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

shlex.join's docstring isn't sufficiently clear #142895

Open
Labels
docsDocumentation in the Doc dir
@BenFrantzDale

Description

@BenFrantzDale

Documentation

I had been using" ".join(shlex.escape(x) for x in args), not realizing thatshlex.join(args) is exactly that.

The docstring is just"""Return a shell-escaped string from *split_command*.""". I'd like to see something like

"""    Return a shell-escaped string from *split_command*.    That is, given a list of strings, return a string that, when printed,    can be copy-pasted into a shell and provide an argc of len(split_command).    For example:    >>> print(shlex.join(['echo', 'foo\"bar\" baz']))    echo 'foo "bar" baz'    >>>    $ echo 'foo "bar" baz'    foo "bar" baz    $    """

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp