Skip to content

Conversation

@alifa98
Copy link

@alifa98 alifa98 commented Dec 18, 2025

Copilot AI review requested due to automatic review settings December 18, 2025 01:58
@python-cla-bot
Copy link

python-cla-bot bot commented Dec 18, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the documentation for the shlex.join() function by expanding its docstring to include a description of its relationship to shlex.split() and adding a practical example demonstrating its usage.

Key Changes:

  • Enhanced the shlex.join() docstring with clarification that it's the inverse of shlex.split()
  • Added a doctest example showing how to join a command list into a shell-escaped string
  • Added a NEWS entry documenting this improvement

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Misc/NEWS.d/next/Library/2025-12-17-20-55-24.gh-issue-142895.HKofui.rst Adds a NEWS entry documenting the docstring improvement for shlex.join
Lib/shlex.py Expands the shlex.join() docstring with a description and practical example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@picnixz
Copy link
Member

picnixz commented Dec 18, 2025

As I said on the issue I believe it is bettet to update the online docs if needed rather than a docstring. We also do not use rst at the code level or doctests in general.

@alifa98 alifa98 closed this Dec 18, 2025
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.

2 participants