<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 27, 2015 at 7:14 PM, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> There's no way to access the ast reliably at runtime in python -- it gets thrown away during compilation.</blockquote></div><br>The "meta" package supports bytecode to ast translation.  See <<a href="http://meta.readthedocs.org/en/latest/api/decompile.html">http://meta.readthedocs.org/en/latest/api/decompile.html</a>>.</div></div>