[New-bugs-announce] [issue27119] `compile` doesn't compile into an AST object as specified
report at bugs.python.org
Wed May 25 02:42:47 EDT 2016
New submission from Franklin? Lee:
>From `compile`'s doc:
"Compile the source into a code or AST object."
The docs don't say how to compile into an AST object with `compile`, though. As it says later:
"If you want to parse Python code into its AST representation, see ast.parse()."
I checked 3.4-3.2, 3.0, 2.7, and 2.6. Versions before 3.4, and version 2.6, are missing the `ast.parse` line, but still have the first line.
assignee: docs at python
nosy: docs at python, leewz
title: `compile` doesn't compile into an AST object as specified
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce