|
|
|
walk(self,
ast)
Validate each node in AST and return True if AST is 'safe'. |
source code
|
|
|
visit(self,
node,
*args)
Recursively validate node and all of its children. |
source code
|
|
|
visitName(self,
node,
*args)
Disallow any attempts to access a restricted builtin/attr. |
source code
|
|
|
visitGetattr(self,
node,
*args)
Disallow any attempts to access a restricted attribute. |
source code
|
|
|
ok(self,
node,
*args)
Default callback for 'harmless' AST nodes. |
source code
|
|
|
fail(self,
node,
*args)
Default callback for unallowed AST nodes. |
source code
|
|
|
trace(self,
node)
Debugging utility for tracing the validation of AST nodes. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|