The shlex module defines the following functions:
s[, comments=False ]) |
False
, the parsing of comments in the given string will be
disabled (setting the commenters member of the shlex
instance to the empty string). This function operates in POSIX mode.
New in version 2.3.
The shlex module defines the following classes:
[instream=sys.stdin [,
infile=None [,
posix=False ]]]) |
sys.stdin
. The second optional argument is a filename
string, which sets the initial value of the infile member. If
the instream argument is omitted or equal to sys.stdin
,
this second argument defaults to ``stdin''. The posix argument
was introduced in Python 2.3, and defines the operational mode. When
posix is not true (default), the shlex instance will
operate in compatibility mode. When operating in POSIX mode,
shlex will try to be as close as possible to the POSIX shell
parsing rules. See 5.19.2.
See About this document... for information on suggesting changes.