From dc4ce0e0139cbe8867e7bf235ba6af796129a7d0 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Fri, 27 Jan 2017 13:04:33 +0000 Subject: Fixes #28784: Clarified use of shlex.shlex with punctuation_chars. --- Doc/library/shlex.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/shlex.rst b/Doc/library/shlex.rst index 4926f04..55012f8 100644 --- a/Doc/library/shlex.rst +++ b/Doc/library/shlex.rst @@ -411,4 +411,6 @@ which characters constitute punctuation. For example:: >>> list(s) ['~/a', '&&', 'b-c', '--color=auto', '||', 'd', '*.py?'] - +For best effect, ``punctuation_chars`` should be set in conjunction with +``posix=True``. (Note that ``posix=False`` is the default for +:class:`~shlex.shlex`.) -- cgit v0.12