Shantanu <hauntsani...@gmail.com> added the comment:
Now that `ast.unparse` is being added to stdlib, I thought I'd bump this thread. The third party library `astunparse` (which attempts to support multiple Python versions while staying very close to Tools/parser/unparse.py) has an implementation that works for complex cases. If that sounds good, I can submit a PR and inform the original author (astunparse is license is based on PSF's, so should be okay if the original author doesn't respond). https://github.com/simonpercivall/astunparse/blob/master/lib/astunparse/unparser.py#L461 ---------- nosy: +hauntsaninja _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue28002> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com