]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118465: Add __firstlineno__ attribute to class (GH-118475)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 6 May 2024 09:02:37 +0000 (12:02 +0300)
committerGitHub <noreply@github.com>
Mon, 6 May 2024 09:02:37 +0000 (12:02 +0300)
commit153b3f75306b5d26e29ea157105d0fdc247ef853
treef73ede56af175d27698ef56bec21073f98889bbc
parent716ec4bfcf1a564db9936122c442baa99f9c4a8c
gh-118465: Add __firstlineno__ attribute to class (GH-118475)

It is set by compiler with the line number of the first line of
the class definition.
17 files changed:
Doc/reference/datamodel.rst
Doc/whatsnew/3.13.rst
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/enum.py
Lib/importlib/_bootstrap_external.py
Lib/inspect.py
Lib/pydoc.py
Lib/test/test_compile.py
Lib/test/test_descr.py
Lib/test/test_inspect/test_inspect.py
Lib/test/test_metaclass.py
Lib/typing.py
Misc/NEWS.d/next/Core and Builtins/2024-05-01-17-12-36.gh-issue-118465.g3Q8iE.rst [new file with mode: 0644]
Python/compile.c