Re: Wow: a second look at asttokens, fstringify and black

2020-01-15 Thread Edward K. Ream
On Wednesday, January 15, 2020 at 11:40:23 AM UTC-5, Edward K. Ream wrote: > I'll investigate how thoroughly asttokens attaches token lists to nodes. I had remembered that only ast nodes for statements have attached tokens, but now I am not sure at all about that. Well, I haven't forgotten

Re: Wow: a second look at asttokens, fstringify and black

2020-01-15 Thread Edward K. Ream
On Wednesday, January 15, 2020 at 11:40:23 AM UTC-5, Edward K. Ream wrote: > I will certainly investigate using asttokens instead of the TOG class. I only plan to compare how asttokens attaches token lists to nodes. Actually, asttokens uses begin/end token indices instead of actually creating

Wow: a second look at asttokens, fstringify and black

2020-01-15 Thread Edward K. Ream
This morning I took a second look at asttokens, fstringify and black. What I found astounded me. I had studied the sources asttokens awhile back, but now, looking at the sources with expert's eyes, I see that the asttokens people have solved all the problems that took me so much work. I then