bedevere-app · GitHub

Closed

Closed

@jb2170

johnslavik

vstinner

@picnixz

picnixz

@jb2170

@jb2170

@picnixz

picnixz

@jb2170

vstinner

There are propositions to add a single-quote-double-quote switch
(pythongh-90630), so to avoid hiccups of people passing `force` as a
positional and it being used for the single-double switch, we make
kwargs kwargs-only.
Test special cases of strings that don't need quoting, do need quoting,
do use `force`, don't use `force` etc. I've tried to be exhaustive.
…to `shlex.force`
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
The comments for why these tests exist can always be found in the git history
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Missed from last commit
Intended for another branch shlex-quote-typeerror
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
…view
Show off the default behavior as `force=False`
Try not to use don't and we're and should've etc apostrophes.
Add test to ensure string with single quote inside it (without which the
string wouldn't need quoting) is quoted even though `force=False`.

@jb2170

@jb2170

@jb2170

@vstinner

@vstinner

@jb2170

jb2170 deleted the shlex-quote-force branch

June 4, 2026 10:59

philthompson10 pushed a commit to philthompson10/cpython that referenced this pull request

Jun 17, 2026
…ython#148846)
There are propositions to add a single-quote-double-quote switch
(pythongh-90630), so to avoid hiccups of people passing `force` as a
positional and it being used for the single-double switch, we make
kwargs kwargs-only.
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>

Read the original on github.com ↗