mirror of
https://github.com/python/cpython.git
synced 2025-10-08 16:11:51 +00:00

* 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.
3 lines
76 B
Python
3 lines
76 B
Python
import _collections_abc
|
|
import sys
|
|
sys.modules[__name__] = _collections_abc
|