[New-bugs-announce] [issue27119] `compile` doesn't compile into an AST object as specified

Franklin? Lee 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
components: Documentation
messages: 266311
nosy: docs at python, leewz
priority: normal
severity: normal
status: open
title: `compile` doesn't compile into an AST object as specified
type: behavior
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>
<http://bugs.python.org/issue27119>
_______________________________________


More information about the New-bugs-announce mailing list