]> granicus.if.org Git - python/commitdiff
Fixes #28784: Clarified use of shlex.shlex with punctuation_chars.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 27 Jan 2017 13:04:33 +0000 (13:04 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 27 Jan 2017 13:04:33 +0000 (13:04 +0000)
Doc/library/shlex.rst

index 4926f04d42306499e0eeee1fc93e91b3d146e886..55012f80e8f923f368b1f597283ecf77309e9514 100644 (file)
@@ -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`.)