New in version 1.5.2.
The shlex class makes it easy to write lexical analyzers for simple syntaxes resembling that of the Unix shell. This will often be useful for writing minilanguages, e.g. in run control files for Python applications.
sys.stdin
. The second optional
argument is a filename string, which sets the initial value of the
infile member. If the stream argument is omitted or
equal to sys.stdin
, this second argument defaults to ``stdin''.
See Also: