This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients dalke, gvanrossum, ncoghlan, nnorwitz
Date 2008-02-05.11:48:34
SpamBayes Score 0.0251202
Marked as misclassified No
Message-id <1202212139.52.0.323923806123.issue2011@psf.upfronthosting.co.za>
In-reply-to
Content
Marking this as Won't Fix.

I'd suggest looking at the _ast module
(http://docs.python.org/dev/library/_ast.html) as a reference rather
than the compiler module. The maintenance on the latter has been sketchy
at best, and as you note, it is scheduled for a well earned retirement
in 3.0.

Passing _ast.PyCF_ONLY_AST as a flag to the builtin function compile()
will let you get an AST using the actual runtime compiler, so any odd
nodes you find in there are likely to be there for a reason (e.g. None
is implicitly inserted into most function namespaces due to the implied
'return None' at the end of the function).
History
Date User Action Args
2008-02-05 11:48:59ncoghlansetspambayes_score: 0.0251202 -> 0.0251202
recipients: + ncoghlan, gvanrossum, nnorwitz, dalke
2008-02-05 11:48:59ncoghlansetspambayes_score: 0.0251202 -> 0.0251202
messageid: <1202212139.52.0.323923806123.issue2011@psf.upfronthosting.co.za>
2008-02-05 11:48:35ncoghlanlinkissue2011 messages
2008-02-05 11:48:34ncoghlancreate