Source text — English
Translation — Bahasa Indonesia
:ref:`PEP 560 <whatsnew37-pep560>`, core support for typing module and generic types.
:ref:`PEP 560 <whatsnew37-pep560>`, dukungan utama untuk modul typing dan tipe umum.
the insertion-order preservation nature of :ref:`dict <typesmapping>` objects `has been declared`_ to be an official part of the Python language spec.
pemeliharaan sifat penyisipan-order dari obyek :ref:`dict <typesmapping>` `telah dideklarasikan`_ menjadi bagian resmi dari spesifikasi bahasa Python.
PEP 560: Core Support for ``typing`` module and Generic Types
Initially :pep:`484` was designed in such way that it would not introduce *any* changes to the core CPython interpreter. Now type hints and the :mod:`typing` module are extensively used by the community, so this restriction is removed. The PEP introduces two special methods :meth:`~object.__class_getitem__` and :meth:`~object.__mro_entries__`, these methods are now used by most classes and special constructs in :mod:`typing`. As a result, the speed of various operations with types increased up to 7 times, the generic types can be used without metaclass conflicts, and several long standing bugs in :mod:`typing` module are fixed.
:pep:`560` -- Core support for typing module and generic types
In order to better support dynamic creation of stack traces, :class:`types.TracebackType` can now be instantiated from Python code, and the :attr:`~traceback.tb_next` attribute on :ref:`tracebacks <traceback-objects>` is now writable. (Contributed by Nathaniel J. Smith in :issue:`30579`.)
mimetypes
mimetypes
types
types
The new :class:`~types.WrapperDescriptorType`, :class:`~types.MethodWrapperType`, :class:`~types.MethodDescriptorType`, and :class:`~types.ClassMethodDescriptorType` classes are now available. (Contributed by Manuel Krebber and Guido van Rossum in :issue:`29377`, and Serhiy Storchaka in :issue:`32265`.)
The new :func:`types.resolve_bases` function resolves MRO entries dynamically as specified by :pep:`560`. (Contributed by Ivan Levkivskyi in :issue:`32717`.)
A full copy of libffi is no longer bundled for use when building the :mod:`_ctypes <ctypes>` module on non-OSX UNIX platforms. An installed copy of libffi is now required when building ``_ctypes`` on such platforms. (Contributed by Zachary Ware in :issue:`27979`.)
Deprecated functions and types of the C API