Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in ↵ | Serhiy Storchaka | 2024-09-28 | 1 | -0/+12 |
| | | | | | | | | | | | | | classes (GH-123613) * 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. | ||||
* | gh-122981: Fix inspect.getsource() for generated classes with Python base ↵ | Serhiy Storchaka | 2024-08-20 | 1 | -0/+42 |
| | | | | | | classes (GH-123001) Look up __firstlineno__ only in the class' dict, without searching in base classes. | ||||
* | gh-116987: Support class code objects in inspect.findsource() (GH-117025) | Tian Gao | 2024-03-21 | 1 | -0/+5 |
| | |||||
* | gh-108303: Move all inspect test files to `test_inspect/` (#109607) | Nikita Sobolev | 2023-10-10 | 1 | -0/+312 |