File tree 3 files changed +7
-15
lines changed
3 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,11 @@ Deprecated
195
195
Removed
196
196
=======
197
197
198
+ * The abstract base classes in :mod: `collections.abc ` no longer are
199
+ exposed in the regular :mod: `collections ` module. This will help
200
+ create a clearer distinction between the concrete classes and the abstract
201
+ base classes.
202
+
198
203
* The undocumented ``sys.callstats() `` function has been removed. Since Python
199
204
3.7, it was deprecated and always returned :const: `None `. It required a special
200
205
build option ``CALL_PROFILE `` which was already removed in Python 3.7.
Original file line number Diff line number Diff line change 39
39
pass
40
40
41
41
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 since Python 3.3, "
51
- "and in 3.9 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
-
57
42
################################################################################
58
43
### OrderedDict
59
44
################################################################################
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