Teks sumber — English
Terjemahan — Bahasa Indonesia
These functions expose the Windows registry API to Python. Instead of using an integer as the registry handle, a :ref:`handle object <handle-object>` is used to ensure that the handles are closed correctly, even if the programmer neglects to explicitly close them.
Several functions in this module used to raise a :exc:`WindowsError`, which is now an alias of :exc:`OSError`.
Functions
Fungsi-Fungsi
This module offers the following functions:
The following constants are defined for use in many :mod:`!winreg` functions.
Registry entries subordinate to this key allow you to access performance data. The data is not actually stored in the registry; the registry functions cause the system to collect the data from its source.
All registry functions in this module return one of these objects.
All registry functions in this module which accept a handle object also accept an integer, however, use of the handle object is encouraged.