regobj.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:keypirinha-plugins 作者: EhsanKia 项目源码 文件源码
def flush(self):
        """Ensure that the key's data is flushed to disk.

        Quoting the _winreg documentation:

          It is not necessary to call FlushKey() to change a key. Registry
          changes are flushed to disk by the registry using its lazy flusher.
          Registry changes are also flushed to disk at system shutdown. 
          Unlike CloseKey(), the FlushKey() method returns only when all the
          data has been written to the registry. An application should only
          call FlushKey() if it requires absolute certainty that registry
          changes are on disk.

          If you don't know whether a FlushKey() call is required, it
          probably isn't.

        """
        _winreg.FlushKey(self.hkey)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号