python / python/cpython

shlex.join() does not accept pathlib.Path objects

Open
#89,293 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

3.11 stdlib type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 45130
Nosy @ericvsmith, @nyuszika7h

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2021-09-07.16:27:33.217>
labels = ['type-feature', 'library', '3.11']
title = 'shlex.join() does not accept pathlib.Path objects'
updated_at = <Date 2021-09-07.21:04:04.882>
user = 'https://github.com/nyuszika7h'

bugs.python.org fields:

activity = <Date 2021-09-07.21:04:04.882>
actor = 'eric.smith'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-09-07.16:27:33.217>
creator = 'nyuszika7h'
dependencies = []
files = []
hgrepos = []
issue_num = 45130
keywords = []
message_count = 6.0
messages = ['401301', '401327', '401328', '401343', '401344', '401345']
nosy_count = 2.0
nosy_names = ['eric.smith', 'nyuszika7h']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue45130'
versions = ['Python 3.11']

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the shlex.join() entry point and inspect how it handles pathlib.Path objects. Find the existing tests for shlex.join() and confirm the desired behavior for Path arguments; done means Path objects are accepted while existing string handling remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.