I just followed the stackoverflow link ( https://stackoverflow.com/questions/16748029/how-to-get-source-corresponding-to-a-python-ast-node#) and someone posted that they created https://github.com/gristlabs/asttokens which "Annotates Python AST trees with source text and token information". Is that different from what your code does?
On Tue, Jan 14, 2020 at 8:02 AM Edward K. Ream <edream...@gmail.com> wrote: > In a day or three I'll be announcing #1440 > <https://github.com/leo-editor/leo-editor/issues/1440>, the unification > of parse trees and tokens, to python's core developers. I'll do that by > making a comment in this related python issue > <https://bugs.python.org/issue33337>. > > In preparation for that announcement, I have revised/created the first > three comments of #1440: > > - The first (main) comment > <https://github.com/leo-editor/leo-editor/issues/1440> gives an overview > of the project and its status. > - The second comment > <https://github.com/leo-editor/leo-editor/issues/1440#issuecomment-573661883> > is the Theory of Operation. > - The third comment > <https://github.com/leo-editor/leo-editor/issues/1440#issuecomment-574145510> > contains the Project's history. > > The announcement itself will be fairly brief, and will refer readers to > #1440 for more details. So I want these three comments to be "perfect". > > Please read and critique all three comments. I am interested in your > comments and suggestions. > > Edward > > P. S. There are similar discussions in LeoDocs.leo, but I'll be referring > to #1440 in the upcoming public announcements. The links above are good > looking and are available to anyone, including those with no access to Leo. > > EKR > > -- > You received this message because you are subscribed to the Google Groups > "leo-editor" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to leo-editor+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/leo-editor/5c6da99b-360f-4ab2-bae9-f9a4d589e860%40googlegroups.com > <https://groups.google.com/d/msgid/leo-editor/5c6da99b-360f-4ab2-bae9-f9a4d589e860%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAO5X8CxyBP_X72L-_b4xj4AxAcoZEA27-R%3Dz0ZONUeRfk34Yow%40mail.gmail.com.