Skip to content

Commit 02b8568

Browse files
committed
Fixes #28784: Clarified use of shlex.shlex with punctuation_chars.
1 parent 12ceb96 commit 02b8568

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/shlex.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -411,4 +411,6 @@ which characters constitute punctuation. For example::
411411
>>> list(s)
412412
['~/a', '&&', 'b-c', '--color=auto', '||', 'd', '*.py?']
413413

414-
414+
For best effect, ``punctuation_chars`` should be set in conjunction with
415+
``posix=True``. (Note that ``posix=False`` is the default for
416+
:class:`~shlex.shlex`.)

0 commit comments

Comments
 (0)