Latest recipes tagged "registery"http://code.activestate.com/recipes/tags/registery/new/2012-10-20T13:54:02-07:00ActiveState Code RecipesTreat the Win32 Registry like a Python dict -- pure python (Python) 2012-10-20T13:54:02-07:00Grizzly Nyohttp://code.activestate.com/recipes/users/4183996/http://code.activestate.com/recipes/578296-treat-the-win32-registry-like-a-python-dict-pure-p/ <p style="color: grey"> Python recipe 578296 by <a href="/recipes/users/4183996/">Grizzly Nyo</a> (<a href="/recipes/tags/registery/">registery</a>, <a href="/recipes/tags/sysadmin/">sysadmin</a>, <a href="/recipes/tags/win32/">win32</a>). </p> <p>This class wraps most of the win32api functions for accessing a registry. It will read and write all win32 registry types, and will de/serialize python objects to registry keys when a string or integer representation is not possible.</p> <p>This is an update of <a href="http://code.activestate.com/recipes/573466/">recipe 573466</a>, which is an update of 551761, which is in turn an update of 174627, folding in the enhancements listed in the discussion there to allow registry value types to be read and written within the dictionary metaphor if required. It doesn't change how it worked before, it adds a new capability, and shouldn't break existing code using the 551761 version.</p> <p>Altered to use _winreg to avoid dependency on PyWin32 (not part of Python).</p>