summaryrefslogtreecommitdiffstats
path: root/Doc/library/shlex.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/shlex.rst')
-rw-r--r--Doc/library/shlex.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/shlex.rst b/Doc/library/shlex.rst
index a8421fd..adc23da 100644
--- a/Doc/library/shlex.rst
+++ b/Doc/library/shlex.rst
@@ -113,7 +113,9 @@ The :mod:`shlex` module defines the following class:
characters, those characters will be used as the punctuation characters. Any
characters in the :attr:`wordchars` attribute that appear in
*punctuation_chars* will be removed from :attr:`wordchars`. See
- :ref:`improved-shell-compatibility` for more information.
+ :ref:`improved-shell-compatibility` for more information. *punctuation_chars*
+ can be set only upon :class:`~shlex.shlex` instance creation and can't be
+ modified later.
.. versionchanged:: 3.6
The *punctuation_chars* parameter was added.
@@ -317,8 +319,8 @@ variables which either control lexical analysis or can be used for debugging:
.. attribute:: shlex.punctuation_chars
- Characters that will be considered punctuation. Runs of punctuation
- characters will be returned as a single token. However, note that no
+ A read-only property. Characters that will be considered punctuation. Runs of
+ punctuation characters will be returned as a single token. However, note that no
semantic validity checking will be performed: for example, '>>>' could be
returned as a token, even though it may not be recognised as such by shells.