Skip to content

Conversation

@kovan
Copy link

@kovan kovan commented Feb 3, 2026

Summary

  • Expand the terse docstring for shlex.join() to explain that it is the inverse of split() and that the result is shell-escaped
  • Add doctest examples showing round-trip behavior with split() and join()

Closes #142895

Test plan

  • Verified the docstring accurately describes the function's behavior
  • Doctest examples are correct and demonstrate the functionality
  • make check in Doc/ directory passed

🤖 Generated with Claude Code

@python-cla-bot
Copy link

python-cla-bot bot commented Feb 3, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Feb 3, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Expand the terse docstring for shlex.join() to explain that it is
the inverse of split() and that the result is shell-escaped. Add
doctest examples showing round-trip behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@kovan kovan force-pushed the gh-142895-shlex-join-docstring branch from 0384252 to 58eef72 Compare February 3, 2026 19:48
@bedevere-app
Copy link

bedevere-app bot commented Feb 3, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@picnixz picnixz closed this Feb 3, 2026
@picnixz
Copy link
Member

picnixz commented Feb 3, 2026

Fully AI-generated PRs are not accepted. Please do not open such PRs.

@kovan
Copy link
Author

kovan commented Feb 3, 2026

But the contribution is useful and/or productive; I don't think you are reading the document right. Please re-read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

shlex.join's docstring isn't sufficiently clear

2 participants