MCPcopy Create free account
hub / github.com/ActiveState/code / keys

Method keys

recipes/Python/502268_Win_Registry_module/recipe-502268.py:44–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 self._keys = self._vals = None
43 @property
44 def keys(self):
45 # returns a dict of subkeys
46 if not self._keys:
47 self._keys={}
48 for i in xrange(reg.QueryInfoKey(self.wrk)[0]):
49 name=reg.EnumKey(self.wrk, i).lower()
50 try:
51 self._keys[name]=Key(self, name)
52 except WindowsError: pass
53 return self._keys
54 @property
55 def vals(self):
56 # returns the list of values

Callers 5

load_HSTFunction · 0.45
format_HSTFunction · 0.45
do_win_actionFunction · 0.45
enter_high_scoreFunction · 0.45
__serveMethod · 0.45

Calls 3

xrangeClass · 0.85
KeyClass · 0.70
lowerMethod · 0.45

Tested by

no test coverage detected