]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34876: Change the lineno of the AST for decorated function and class. (GH-9731)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 30 Oct 2018 11:16:02 +0000 (13:16 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 11:16:02 +0000 (13:16 +0200)
commit95b6acf951fa7f503a3cc5ce7d969d7bcf2f95c9
tree8f6c2e5a36ae932599e81ba3a226360ca59b19d7
parentb83d917fafd87e4130f9c7d5209ad2debc7219cd
bpo-34876: Change the lineno of the AST for decorated function and class. (GH-9731)

It was overridden by the lineno of the first decorator. Now it is
the lineno of 'def' or 'class'.
Lib/test/test_ast.py
Lib/test/test_trace.py
Misc/NEWS.d/next/Core and Builtins/2018-10-06-14-02-51.bpo-34876.oBKBA4.rst [new file with mode: 0644]
Python/ast.c
Python/compile.c
Python/importlib.h
Python/importlib_external.h