summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-05-24 16:49:29 (GMT)
committerGeorg Brandl <georg@python.org>2007-05-24 16:49:29 (GMT)
commitc90bc7599441632a0b6d0b9bfc92563fe7e19104 (patch)
treed2e49ede7d849f820c2bb2b6955891b3f1410387 /Doc
parentdf25efeae931409fa45ed034337bd81396d19ce0 (diff)
downloadcpython-c90bc7599441632a0b6d0b9bfc92563fe7e19104.zip
cpython-c90bc7599441632a0b6d0b9bfc92563fe7e19104.tar.gz
cpython-c90bc7599441632a0b6d0b9bfc92563fe7e19104.tar.bz2
shlex.split() now has an optional "posix" parameter.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libshlex.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libshlex.tex b/Doc/lib/libshlex.tex
index 451615f..23babd3 100644
--- a/Doc/lib/libshlex.tex
+++ b/Doc/lib/libshlex.tex
@@ -19,13 +19,15 @@ files for Python applications) or for parsing quoted strings.
The \module{shlex} module defines the following functions:
-\begin{funcdesc}{split}{s\optional{, comments}}
+\begin{funcdesc}{split}{s\optional{, comments\optional{, posix}}}
Split the string \var{s} using shell-like syntax. If \var{comments} is
\constant{False} (the default), the parsing of comments in the given
string will be disabled (setting the \member{commenters} member of the
\class{shlex} instance to the empty string). This function operates
-in \POSIX{} mode.
+in \POSIX{} mode by default, but uses non-\POSIX{} mode if the
+\var{posix} argument is false.
\versionadded{2.3}
+\versionchanged[Added the \var{posix} parameter]{2.6}
\end{funcdesc}
The \module{shlex} module defines the following class: