File tree Expand file tree Collapse file tree 3 files changed +7
-15
lines changed
Expand file tree Collapse file tree 3 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,11 @@ The following features and APIs have been removed from Python 3.8:
557557* Removed the ``doctype() `` method of :class: `~xml.etree.ElementTree.XMLParser `.
558558 (Contributed by Serhiy Storchaka in :issue: `29209 `.)
559559
560+ * The abstract base classes in :mod: `collections.abc ` no longer are
561+ exposed in the regular :mod: `collections ` module. This will help
562+ create a clearer distinction between the concrete classes and the abstract
563+ base classes.
564+
560565
561566Porting to Python 3.8
562567=====================
Original file line number Diff line number Diff line change 3939 pass
4040
4141
42- def __getattr__ (name ):
43- # For backwards compatibility, continue to make the collections ABCs
44- # through Python 3.6 available through the collections module.
45- # Note, no new collections ABCs were added in Python 3.7
46- if name in _collections_abc .__all__ :
47- obj = getattr (_collections_abc , name )
48- import warnings
49- warnings .warn ("Using or importing the ABCs from 'collections' instead "
50- "of from 'collections.abc' is deprecated, "
51- "and in 3.8 it will stop working" ,
52- DeprecationWarning , stacklevel = 2 )
53- globals ()[name ] = obj
54- return obj
55- raise AttributeError (f'module { __name__ !r} has no attribute { name !r} ' )
56-
5742################################################################################
5843### OrderedDict
5944################################################################################
Original file line number Diff line number Diff line change 1+ The abstract base classes in :mod: `collections.abc ` no longer are exposed in
2+ the regular :mod: `collections ` module.
You can’t perform that action at this time.
0 commit comments