the accuracy of the time functions is often much less than what might be suggested by the units in which time is represented for examplethe operating system might only update the time - times second see alsodatetime ( winreg the winreg module (_winreg in python provides low-level interface to the windows registry the registry is large hierarchical tree in which each node is called key the children of particular key are known as subkeys and may contain additional subkeys or values for examplethe setting of the python sys path variable is typically contained in the registry as follows\hkey_local_machine\software\python\pythoncore\ \pythonpath in this casesoftware is subkey of hkey_local_machinepython is subkey of softwareand so forth the value of the pythonpath key contains the actual path setting keys are accessed through open and close operations open keys are represented by special handles (which are wrappers around the integer handle identifiers normally used by windowsclosekey(keycloses previously opened registry key with handle key connectregistry(computer_namekeyreturns handle to predefined registry key on another computer computer_name is the name of the remote machine as string of the \\computername if computer_name is nonethe local registry is used key is predefined handle such as hkey_current_user or hkey_ users raises environmenterror on failure the following list shows all hkey_values defined in the _winreg modulen hkey_classes_root hkey_current_config hkey_current_user hkey_dyn_data hkey_local_machine hkey_performance_data hkey_users createkey(keysub_keycreates or opens key and returns handle key is previously opened key or predefined key defined by the hkey_constants sub_key is the name of the key that will be opened or created if key is predefined keysub_key may be nonein which case key is returned lib fl ff