parser (version 0.5)
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/parser.so
Module Docs

This is an interface to Python's internal parser.

 
Classes
       
__builtin__.object
st
exceptions.Exception(exceptions.BaseException)
ParserError

 
ASTType = class st(__builtin__.object)
    Intermediate representation of a Python parse tree.
 
  Methods defined here:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__sizeof__(...)
Returns size in memory, in bytes.
compile(...)
Compile this ST object into a code object.
isexpr(...)
Determines if this ST object was created from an expression.
issuite(...)
Determines if this ST object was created from a suite.
tolist(...)
Creates a list-tree representation of this ST.
totuple(...)
Creates a tuple-tree representation of this ST.

 
class ParserError(exceptions.Exception)
    
Method resolution order:
ParserError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
STType = class st(__builtin__.object)
    Intermediate representation of a Python parse tree.
 
  Methods defined here:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__sizeof__(...)
Returns size in memory, in bytes.
compile(...)
Compile this ST object into a code object.
isexpr(...)
Determines if this ST object was created from an expression.
issuite(...)
Determines if this ST object was created from a suite.
tolist(...)
Creates a list-tree representation of this ST.
totuple(...)
Creates a tuple-tree representation of this ST.

 
Functions
       
ast2list(...)
Creates a list-tree representation of an ST.
ast2tuple(...)
Creates a tuple-tree representation of an ST.
compileast(...)
Compiles an ST object into a code object.
compilest(...)
Compiles an ST object into a code object.
expr(...)
Creates an ST object from an expression.
isexpr(...)
Determines if an ST object was created from an expression.
issuite(...)
Determines if an ST object was created from a suite.
sequence2ast(...)
Creates an ST object from a tree representation.
sequence2st(...)
Creates an ST object from a tree representation.
st2list(...)
Creates a list-tree representation of an ST.
st2tuple(...)
Creates a tuple-tree representation of an ST.
suite(...)
Creates an ST object from a suite.
tuple2ast(...)
Creates an ST object from a tree representation.
tuple2st(...)
Creates an ST object from a tree representation.

 
Data
        __copyright__ = 'Copyright 1995-1996 by Virginia Polytechnic Inst...Mathematisch\nCentrum, Amsterdam, The Netherlands.'
__version__ = '0.5'