Back to index

python3.2  3.2.2
Classes | Functions | Variables
shlex Namespace Reference

Classes

class  shlex

Functions

def split

Variables

list __all__ = ["shlex", "split"]
tuple lexer = shlex()
list file = sys.argv[1]
tuple tt = lexer.get_token()

Detailed Description

A lexical analyzer class for simple shell-like syntaxes.

Function Documentation

def shlex.split (   s,
  comments = False,
  posix = True 
)

Definition at line 270 of file shlex.py.

00270 
00271 def split(s, comments=False, posix=True):
00272     lex = shlex(s, posix=posix)
00273     lex.whitespace_split = True
00274     if not comments:
00275         lex.commenters = ''
00276     return list(lex)

Here is the caller graph for this function:


Variable Documentation

list shlex.__all__ = ["shlex", "split"]

Definition at line 15 of file shlex.py.

list shlex.file = sys.argv[1]

Definition at line 281 of file shlex.py.

tuple shlex.lexer = shlex()

Definition at line 279 of file shlex.py.

tuple shlex.tt = lexer.get_token()

Definition at line 284 of file shlex.py.