Pending removal in Python 3.21¶
-
Soft-deprecated since Python 3.3
abc.abstractclassmethod,abc.abstractstaticmethod, andabc.abstractpropertynow raise aDeprecationWarning. These classes will be removed in Python 3.21, instead useabc.abstractmethod()withclassmethod(),staticmethod(), andpropertyrespectively.
ast:Classes
slice,Index,ExtSlice,Suite,Param,AugLoadandAugStore, will be removed in Python 3.21. These types are not generated by the parser or accepted by the code generator.The
dimsproperty ofast.Tuplewill be removed in Python 3.21. Use theast.Tuple.eltsproperty instead.
-
Soft-deprecated since Python 3.15, using
'F'and'D'type codes are now deprecated. These codes will be removed in Python 3.21. Use instead two-letter forms'Zf'and'Zd'.
-
tempfile._TemporaryFileWrapperwill be removed in Python 3.21. Use the publictempfile.TemporaryFileWrapperinstead.
-
threading.Condition.notifyAll,threading.Event.isSet, andthreading.activeCountwill be removed in Python 3.21. Use the snake case names (e.g.,notify_all) instead.threading.Thread.isDaemon,threading.Thread.setDaemonwill be removed in Python 3.21. Use the propertythreading.Thread.daemoninstead.threading.Thread.getNameandthreading.Thread.setNamewill be removed in Python 3.21. Use the propertythreading.Thread.nameinstead.