[issue34876] Python3.8 changes how decorators are traced

Ned Batchelder report at bugs.python.org
Wed Oct 3 06:08:21 EDT 2018


Ned Batchelder <ned at nedbatchelder.com> added the comment:

Yes, I agree that the assignment statement behavior is fine.  The stacked decorator behavior is not.

I understand that under the hood the two cases are very similar, but the syntax is different.  Jumping back to the first decorator makes it look like the decorators are executed in order and then the first decorator runs again.  There is nothing in the syntax that makes revisting the first decorator line reasonable.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34876>
_______________________________________


More information about the Python-bugs-list mailing list