Show More
@@ -80,7 +80,10 b' class CachingCompiler(codeop.Compile):' | |||
|
80 | 80 | linecache.checkcache = self.check_cache |
|
81 | 81 | |
|
82 | 82 | def ast_parse(self, source, filename='<unknown>', symbol='exec'): |
|
83 |
"""Parse code to an AST with the current compiler flags active. |
|
|
83 | """Parse code to an AST with the current compiler flags active. | |
|
84 | ||
|
85 | Arguments are exactly the same as ast.parse (in the standard library), | |
|
86 | and are passed to the built-in compile function.""" | |
|
84 | 87 | return compile(source, filename, symbol, self.flags | PyCF_ONLY_AST, 1) |
|
85 | 88 | |
|
86 | 89 | def reset_compiler_flags(self): |
General Comments 0
You need to be logged in to leave comments.
Login now