def hasvalue(self, name=''):
            """ Return True if the current key has a value named
            'name', False otherwise """
            
            try:
                if name:
                    wreg.QueryValueEx(self._hkey, name)
                else:
                    wreg.QueryValue(self._hkey, '')
                return True
            except (WindowsError, EnvironmentError), e:
                return False
 Return True if the current key has a value named
            'name', False otherwise 
recipes/Python/476229_YARW__Yet_Another_Registry/recipe-476229.py