(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/shlex-objects.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/misc.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/Cmd-objects.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 5.11.1 shlex Objects Up: 5. Miscellaneous Services Previous: 5.10.1 Cmd Objects
5.11 shlex -- Simple lexical analysis
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.
- shlex ([stream])
- A shlex instance or subclass instance is a lexical analyzer object. The initialization argument, if present, specifies where to read characters from. It must be a file- or stream-like object with read() and readline() methods. If no argument is given, input will be taken from
sys.stdin.
See Also:
- Module ConfigParser:
- Parser for configuration files similar to the Windows .ini files.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/shlex-objects.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/misc.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/Cmd-objects.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 5.11.1 shlex Objects Up: 5. Miscellaneous Services Previous: 5.10.1 Cmd Objects
Send comments on this document to python-docs@python.org.