summaryrefslogtreecommitdiffstats
path: root/Lib/collections/abc.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-125245: Fix race condition when importing `collections.abc` (#125415)Sam Gross2024-10-241-3/+0
| | | | | | If multiple threads concurrently imported `collections.abc`, some of the threads might incorrectly see the "shim" `Lib/collections/abc.py` module instead of the correct `Lib/_collections_abc.py` module. This affected both the free threading build and the default GIL-enabled build.
* gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in ↵Serhiy Storchaka2024-09-281-3/+3
| | | | | | | | | | | | | 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-120417: Fix "imported but unused" linter warnings (#120461)Victor Stinner2024-06-141-2/+2
| | | | | | | | | | | Add __all__ to the following modules: importlib.machinery, importlib.util and xml.sax. Add also "# noqa: F401" in collections.abc, subprocess and xml.sax. * Sort __all__; remove collections.abc.__all__; remove private names * Add tests
* gh-91896: Revert some very noisy DeprecationWarnings for `ByteString` (#104424)Alex Waygood2023-05-131-9/+0
|
* gh-91896: Improve visibility of `ByteString` deprecation warnings (#104294)Alex Waygood2023-05-121-0/+9
|
* bpo-42195: Ensure consistency of Callable's __args__ in collections.abc and ↵kj2020-12-131-0/+1
| | | | typing (GH-23060)
* whitespace cleanupChristian Heimes2013-10-131-1/+0
|
* Issue #19218: Add facade collections.abcChristian Heimes2013-10-131-0/+3
|
* Issue #19218: Rename collections.abc to _collections_abc in order to speed ↵Christian Heimes2013-10-131-728/+0
| | | | up interpreter start
* Close #18690: register memoryview with Sequence ABCNick Coghlan2013-10-021-0/+1
|
* Fix typo on MutableSequence docstring.Guido van Rossum2013-07-251-1/+1
|
* mergeRaymond Hettinger2013-03-241-0/+68
|\
| * Add missing docstrings to the collections ABCsRaymond Hettinger2013-03-241-0/+68
| |
* | Merge issue #16373: Prevent infinite recursion for ABC Set class operations.Andrew Svetlov2012-11-011-2/+2
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Merge issue #16373: Prevent infinite recursion for ABC Set class operations.Andrew Svetlov2012-11-011-2/+2
| | | | | | | | Patch by Serhiy Storchaka.
* | utilize yield fromPhilip Jenvey2012-10-011-2/+1
|/
* Close #14386: Register types.MappingProxyType as a MappingVictor Stinner2012-04-191-1/+3
|
* Clarify that the purpose of computing all the miscellaneous collection types ↵Raymond Hettinger2012-04-051-3/+7
| | | | is to register them with the appropriate ABCs.
* Issue #11333: Add __slots__ to the collections ABCs.Raymond Hettinger2011-03-221-0/+26
|
* Issue #11388: Added a clear() method to MutableSequenceEli Bendersky2011-03-041-0/+7
|
* Issue #11085: Moved collections abstract base classes into a separate moduleRaymond Hettinger2011-02-221-0/+621
called collections.abc, following the pattern used by importlib.abc. For backwards compatibility, the names continue to also be imported into the collections module.