diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-09-30 04:21:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 04:21:40 (GMT) |
commit | 5bf32d1300f7342ec76e8afee480eef07d00a23b (patch) | |
tree | a323bdf62b061e991c710e5a087bebee173e8e9a /Python/gc.c | |
parent | ce0eaa67032389d64fd2d7fb510e34372082eef8 (diff) | |
download | cpython-5bf32d1300f7342ec76e8afee480eef07d00a23b.zip cpython-5bf32d1300f7342ec76e8afee480eef07d00a23b.tar.gz cpython-5bf32d1300f7342ec76e8afee480eef07d00a23b.tar.bz2 |
[3.13] gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in classes (GH-123613) (#124735)
* Setting the __module__ attribute for a class now removes the
__firstlineno__ item from the type's dict.
* The _collections_abc and _pydecimal modules now completely replace the
collections.abc and decimal modules after importing them. This
allows to get the source of classes and functions defined in these
modules.
* inspect.findsource() now checks whether the first line number for a
class is out of bound.
(cherry picked from commit 69a4063ca516360b5eb96f5432ad9f9dfc32a72e)
Diffstat (limited to 'Python/gc.c')
0 files changed, 0 insertions, 0 deletions