Re: Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-05-03 Thread Mike Lee Williams
On Monday, May 3, 2021 at 10:41:14 AM UTC-7, Terry Reedy wrote: > > Answering my own question: the behavior was changed by > > https://github.com/python/cpython/pull/9731. > Since this patch, Mark Shannon has revised line numbering and tracing > and replaced the internal lineno data structure. Yo

Re: Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-05-03 Thread Terry Reedy
On 4/30/2021 11:07 PM, Mike Lee Williams wrote: On Friday, April 30, 2021 at 7:55:10 PM UTC-7, Mike Lee Williams wrote: This trivial bit of code is parsed differently by the ast module between python 3.7 and python 3.8. I'm trying to figure out what changed and why, and once I know that, if it's

Re: Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-04-30 Thread Mike Lee Williams
On Friday, April 30, 2021 at 7:55:10 PM UTC-7, Mike Lee Williams wrote: > This trivial bit of code is parsed differently by the ast module between > python > 3.7 and python 3.8. I'm trying to figure out what changed and why, and once I > know that, if it's possible and desirable to retain the 3.

Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-04-30 Thread Mike Lee Williams
This trivial bit of code is parsed differently by the ast module between python 3.7 and python 3.8. I'm trying to figure out what changed and why, and once I know that, if it's possible and desirable to retain the 3.7 behavior for my use case (which needs to give the same result for this input on 3