[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: 1b467efb9b27 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1729ec440bb6 by Benjamin Peterson in branch '2.7': check by equality for __future__ not identity (closes #14378) http://hg.python.org/cpython/rev/1729ec440bb6 -- status: open -> closed ___ Python tracker

[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread R. David Murray
R. David Murray added the comment: After this commit the buildbots are dying randomly with segfaults. -- nosy: +r.david.murray priority: normal -> release blocker status: closed -> open ___ Python tracker

[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset f57cbcefde34 by Benjamin Peterson in branch '3.2': check by equality for __future__ not identity (closes #14378) http://hg.python.org/cpython/rev/f57cbcefde34 New changeset 9d793be3b4eb by Benjamin Peterson in branch 'default': merge 3.2 (#14378) h

[issue14378] __future__ imports fail when compiling from python ast

2012-03-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker ___ ___ Python-bugs-list

[issue14378] __future__ imports fail when compiling from python ast

2012-03-20 Thread J. D. Bartlett
J. D. Bartlett added the comment: Incidentally, the workaround that I'm using for the time being is to run the following code before attempting to compile root_node. for node in ast.walk(root_node): if isinstance(node, ast.ImportFrom) and node.module == '__future__': node.module =

[issue14378] __future__ imports fail when compiling from python ast

2012-03-20 Thread J. D. Bartlett
New submission from J. D. Bartlett : GOAL I am trying to compile an AST which contains an ImportFrom node which performs a __future__ import. The ImportFrom node in question is the first node within the AST's body (as it should be, because __future__ imports must occur at the beginning of modu