[issue34000] Document when compile returns a code object v. AST

2019-12-15 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you for the bug report and thank you @BTaskaya for finding the other issue. I'm closing this as a duplicate of #27119. -- nosy: +cheryl.sabella resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> `compile`

[issue34000] Document when compile returns a code object v. AST

2019-12-01 Thread Batuhan
Batuhan added the comment: I think this is a duplicate of issue 27119 -- nosy: +BTaskaya ___ Python tracker ___ ___

[issue34000] Document when compile returns a code object v. AST

2018-06-29 Thread Geoffrey Sneddon
New submission from Geoffrey Sneddon : The compile built-in documentation says: > Compile the source into a code or AST object. It doesn't however go on to say when it returns each! It does however note: > If you want to parse Python code into its AST representation, see ast.parse(). So