is no current event loop set and it decides to create one.
(Contributed by Serhiy Storchaka and Guido van Rossum in :gh:`100160`.)
-* :mod:`collections.abc`: Deprecated :class:`~collections.abc.ByteString`.
- Prefer :class:`!Sequence` or :class:`~collections.abc.Buffer`.
- For use in typing, prefer a union, like ``bytes | bytearray``,
- or :class:`collections.abc.Buffer`.
- (Contributed by Shantanu Jain in :gh:`91896`.)
-
* :mod:`email`: Deprecated the *isdst* parameter in :func:`email.utils.localtime`.
(Contributed by Alan Williams in :gh:`72346`.)
if :ref:`named placeholders <sqlite3-placeholders>` are used and
*parameters* is a sequence instead of a :class:`dict`.
-* :mod:`typing`: :class:`~typing.ByteString`, deprecated since Python 3.9,
- now causes a :exc:`DeprecationWarning` to be emitted when it is used.
-
* :mod:`urllib`:
:class:`!urllib.parse.Quoter` is deprecated: it was not intended to be a
public API.
- :pep:`585`
* - :class:`typing.ByteString`
- 3.9
- - 3.14
+ - 3.17
- :gh:`91896`
* - :data:`typing.Text`
- 3.11
warnings._deprecated(
"collections.abc.ByteString",
- remove=(3, 14),
+ remove=(3, 17),
)
return super().__new__(cls, name, bases, namespace, **kwargs)
warnings._deprecated(
"collections.abc.ByteString",
- remove=(3, 14),
+ remove=(3, 17),
)
return super().__instancecheck__(instance)
Sequence = _alias(collections.abc.Sequence, 1)
MutableSequence = _alias(collections.abc.MutableSequence, 1)
ByteString = _DeprecatedGenericAlias(
- collections.abc.ByteString, 0, removal_version=(3, 14) # Not generic.
+ collections.abc.ByteString, 0, removal_version=(3, 17) # Not generic.
)
# Tuple accepts variable number of parameters.
Tuple = _TupleType(tuple, -1, inst=False, name='Tuple')