Movatterモバイル変換


[0]ホーム

URL:


Previous PageUp One LevelNext PagePython Library ReferenceContentsModule IndexIndex
Previous:18.1.4 Exceptions and ErrorUp:18.1 parserNext:18.1.6 Examples

 
18.1.5 AST Objects

Ordered and equality comparisons are supported between AST objects.Pickling of AST objects (using thepickle module) is alsosupported.

ASTType
The type of the objects returned byexpr(),suite() andsequence2ast().

AST objects have the following methods:

compile([filename])
Same ascompileast(ast,filename).

isexpr()
Same asisexpr(ast).

issuite()
Same asissuite(ast).

tolist([line_info])
Same asast2list(ast,line_info).

totuple([line_info])
Same asast2tuple(ast,line_info).


Previous PageUp One LevelNext PagePython Library ReferenceContentsModule IndexIndex
Previous:18.1.4 Exceptions and ErrorUp:18.1 parserNext:18.1.6 Examples
Release 2.2.3, documentation updated on 30 May 2003.
SeeAbout this document... for information on suggesting changes.
[8]ページ先頭

©2009-2026 Movatter.jp