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 hauntsaninja
Recipients BTaskaya, berker.peksag, eric.smith, hauntsaninja, loganasherjones, remi.lapeyre, serhiy.storchaka
Date 2020-04-15.02:44:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586918653.32.0.639516798058.issue28002@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-04-15 02:44:13hauntsaninjasetrecipients: + hauntsaninja, eric.smith, berker.peksag, serhiy.storchaka, remi.lapeyre, BTaskaya, loganasherjones
2020-04-15 02:44:13hauntsaninjasetmessageid: <1586918653.32.0.639516798058.issue28002@roundup.psfhosted.org>
2020-04-15 02:44:13hauntsaninjalinkissue28002 messages
2020-04-15 02:44:13hauntsaninjacreate