This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Let `shlex.quote` accept a `PathLike` object
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.7
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: berker.peksag, cool-RR, r.david.murray
Priority: normal Keywords:

Created on 2016-11-06 09:44 by cool-RR, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg280133 - (view) Author: Ram Rachum (cool-RR) * Date: 2016-11-06 09:44
Currently it complains that you haven't fed it a string-like object.
msg280187 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-11-07 04:05
Which IMO is correct.  shlex.quote takes an arbitrary string, not a filename.  I'm -1 on this proposal.
msg280212 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-11-07 17:28
Agreed with David. Closing this as 'rejected'. Thanks for the report.
Date User Action Args
2022-04-11 14:58:39adminsetgithub: 72809
2016-11-07 17:28:40berker.peksagsetstatus: open -> closed

nosy: + berker.peksag
messages: + msg280212

resolution: rejected
stage: resolved
2016-11-07 04:05:37r.david.murraysetnosy: + r.david.murray
messages: + msg280187
2016-11-06 09:44:36cool-RRcreate